CoreFiles by mySites.guru
PackageField.php36 lines, 823 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
cc4208813baa37f76858b3d772cda94d
sha1
4fc35475fcdd8816224299096fbd937d92f320f5
sha256
4d7e5b88b18add5bad9a5e127a85255a59e99e06cd441a3ce1a375829d7a44d4
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   (C) 2022 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;

/**
 * Package field.
 *
 * Selects the extension ID of an extension of the "package" type.
 *
 * @since 4.2.0
 */
class PackageField extends ListField
{
	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects.
	 * @since   4.2.0
	 */
	protected function getOptions()
	{
		$options = InstallerHelper::getPackageOptions();

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

The same content is in 2 releases, Joomla 4.2.0-beta1 to 4.2.0-beta2. See them all, or every version of this file.