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

getItemDataAttribute() public method

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