Can't we do naming in the cluster?

Although I set the title part, it does not change. I need to use translation in the title here.
public static function setTitle(): ?string
{
self::$title = __('custom.test');
return self::$title;
}


protected static ?string $title='test';
public static function setTitle(): ?string
{
self::$title = __('custom.test');
return self::$title;
}


protected static ?string $title='test';
No description
2 Replies
krekas
krekas3mo ago
set title method doesn't even return anything
Sydd
Sydd3mo ago
public static function getNavigationLabel(): string { return ('.... } public static function getClusterBreadcrumb(): ?string { return ('.... } I'm using this