public static function getComponentName($component)
    {
        $details = $component->componentDetails();
        $name = $details['name'] ?? 'cms::lang.component.unnamed';

        return Lang::get($name);
    }
public static function getComponentName($component)
    {
        $details = $component->componentDetails();
        $name = $details['name'] ?? 'cms::lang.component.unnamed';

        return Lang::get($name);
    }
public static function getComponentName ( $ component ) { $ details = $ component -> componentDetails ( ) ; $ name = $ details [ 'name' ] ?? 'cms::lang.component.unnamed' ; return Lang :: get ( $ name ) ; }
Returns a component name.
@param mixed $component The component object
@return string
Returns a component name .