FOF30\Form\Field\Actions::getConfig PHP Метод

getConfig() защищенный Метод

Get the field configuration
protected getConfig ( ) : array
Результат array
    protected function getConfig()
    {
        // If no custom options were defined let's figure out which ones of the
        // defaults we shall use...
        $config = array('published' => 1, 'unpublished' => 1, 'archived' => 0, 'trash' => 0, 'all' => 0);
        if (isset($this->element['show_published'])) {
            $config['published'] = StringHelper::toBool($this->element['show_published']);
        }
        if (isset($this->element['show_unpublished'])) {
            $config['unpublished'] = StringHelper::toBool($this->element['show_unpublished']);
        }
        if (isset($this->element['show_archived'])) {
            $config['archived'] = StringHelper::toBool($this->element['show_archived']);
        }
        if (isset($this->element['show_trash'])) {
            $config['trash'] = StringHelper::toBool($this->element['show_trash']);
        }
        if (isset($this->element['show_all'])) {
            $config['all'] = StringHelper::toBool($this->element['show_all']);
        }
        return $config;
    }