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');
}

but its not working
Solution
public static function getNavigationLabel(): string
{
    //    
}
Was this page helpful?