CoreFiles by mySites.guru
FolderField.php44 lines, 918 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
05fcbc82052cf8757d45ee37fda0b9bb
sha1
8404c582ef2e981e5af052223a78e28e08efc562
sha256
52a817aae7e0d64cdd7fec01e7a66db5dbe32f126107f5fa23a99d10bfdc288f
<?php

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

namespace Joomla\Component\Installer\Administrator\Field;

use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Installer\Administrator\Helper\InstallerHelper;

/**
 * Folder field.
 *
 * @since  3.5
 */
class FolderField extends ListField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.5
     */
    protected $type = 'Folder';

    /**
     * Method to get the field options.
     *
     * @return  array  The field option objects.
     *
     * @since   3.5
     */
    public function getOptions()
    {
        $options = InstallerHelper::getExtensionGroups();

        return array_merge(parent::getOptions(), $options);
    }
}

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.