App\Services\Html\BlenderFormBuilder::getSeoLabel PHP Méthode

getSeoLabel() protected méthode

protected getSeoLabel ( string $attribute ) : string
$attribute string
Résultat string
    protected function getSeoLabel(string $attribute) : string
    {
        if (starts_with($attribute, 'meta_')) {
            return 'Meta: ' . substr($attribute, 5);
        }
        return fragment("back.seo.{$attribute}");
    }