CoreFiles by mySites.guru
FolderField.php45 lines, 894 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
04ec4b8e49e38ff479cbfb3f3be20d0f
sha1
8e812f921467b3ef5228e49042fbaee921f80f5d
sha256
4bcf35966c1b7389a40c93686e310961e86913df02d516e93595bae83ce7d6db
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Installer\Administrator\Field;

defined('_JEXEC') or die;

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);
	}
}

No other release has this exact content. See every version of this file.