Change Tab Label of RelationManager?

It is possible?
6 Replies
Lara Zeus
Lara Zeus2y ago
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return "new title";
}
public static function getTitle(Model $ownerRecord, string $pageClass): string
{
return "new title";
}
Rootes
RootesOP2y ago
That was my first try but is not working in the RelationManager.php.
Lara Zeus
Lara Zeus2y ago
i am testing it in a RelationManager class and working do you have public static ?string $title = 'text';
Rootes
RootesOP2y ago
Not sure why public static ?string $title = 'text'; Works but the function getTitle no.. and I wanted to translate.
Lara Zeus
Lara Zeus2y ago
is should 🤔 you have to remove the public static ?string $title
Rootes
RootesOP2y ago

Did you find this page helpful?