Conditional Resource/Navigation Label

Is there anyway I could make this work?
image.png
Solution
use the function and remove the prop '$label'
public static function getLabel(): ?string
    {
        return self::$label;
    }
Was this page helpful?