How to change resource label dynamic

Hi, I want change resource navigation label dynamic. How I can do that? I try this:
public function __construct() {
static::$navigationLabel = __('positions.resource_navigation_label');
}
public function __construct() {
static::$navigationLabel = __('positions.resource_navigation_label');
}
but its not working
Solution:
```php public static function getNavigationLabel(): string { //
}...
Jump to solution
1 Reply
Solution
charlie
charlie3w ago
public static function getNavigationLabel(): string
{
//
}
public static function getNavigationLabel(): string
{
//
}

Did you find this page helpful?