RainLab\Pages\Classes\Menu::getNameAttribute PHP Method

getNameAttribute() public method

Returns a default value for name attribute.
public getNameAttribute ( ) : string
return string
    public function getNameAttribute()
    {
        if (array_key_exists('name', $this->attributes)) {
            return $this->attributes['name'];
        }
        return $this->attributes['name'] = array_get($this->parseContent(), 'name');
    }