FOF30\Form\Field\BooleanToggle::getOptions PHP Метод

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

Ordering is disabled by default. You can enable ordering by setting the 'order' element in your form field. The other order values are optional. - order What to order. Possible values: 'name' or 'value' (default = false) - order_dir Order direction. Possible values: 'asc' = Ascending or 'desc' = Descending (default = 'asc') - order_case_sensitive Order case sensitive. Possible values: 'true' or 'false' (default = false)
protected getOptions ( ) : array
Результат array The field option objects.
    protected function getOptions()
    {
        $options = parent::getOptions();
        $defaultOptions = array(JHtml::_('select.option', 1, \JText::_('JYES')), JHtml::_('select.option', 0, \JText::_('JNO')));
        $options = array_merge($defaultOptions, $options);
        return $options;
    }