FOF30\Form\Header\Language::getOptions PHP Method

getOptions() protected method

Method to get the filter options.
Since: 2.0
protected getOptions ( ) : array
return array The filter option objects.
    protected function getOptions()
    {
        // Initialize some field attributes.
        $client = (string) $this->element['client'];
        if ($client != 'site' && $client != 'administrator') {
            $client = 'site';
        }
        // Merge any additional options in the XML definition.
        $options = array_merge(parent::getOptions(), \JLanguageHelper::createLanguageList($this->value, constant('JPATH_' . strtoupper($client)), true, true));
        return $options;
    }
Language