CoreFiles by mySites.guru
LevelsField.php43 lines, 946 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
f6e9d3b8f1426599711b49a7c8f97d08
sha1
1ff9d770661e39a29e5be75b8bc82a79398bc0ed
sha256
533be0716d1bb4a68aea7785588e44bc4db67092610e17fb788768c32bc85373
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_users
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Users\Administrator\Field;

use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Users\Administrator\Helper\DebugHelper;

/**
 * Access Levels field.
 *
 * @since  3.6.0
 */
class LevelsField extends ListField
{
    /**
     * The form field type.
     *
     * @var     string
     * @since   3.6.0
     */
    protected $type = 'Levels';

    /**
     * Method to get the field options.
     *
     * @return  array  The field option objects
     *
     * @since   3.6.0
     */
    protected function getOptions()
    {
        // Merge any additional options in the XML definition.
        return array_merge(parent::getOptions(), DebugHelper::getLevelsOptions());
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.