CoreFiles by mySites.guru
PackageField.php37 lines, 863 bytes, from Joomla_4.2.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta2
md5
21801ee79dd2b7d527a6209a39ef537c
sha1
a762417a734602e02480ac5e6369663d2a2c7195
sha256
0445f54caf183f9b95688d534d81fc6055c669b950b48745be6348424ee7dd31
<?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 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.