CoreFiles by mySites.guru
PluginElementField.php48 lines, 1,039 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
7653a2c5221ab1c5740d532cd8df79c1
sha1
6c2793367f3c24d0e5d111ac687d5c1c75441750
sha256
83f6d0587e87d8d2f62d4c5b5456b560905fdcf8d73f9264672b55b5d5b4d58d
<?php

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

namespace Joomla\Component\Plugins\Administrator\Field;

use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Plugins\Administrator\Helper\PluginsHelper;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Plugin Element field.
 *
 * @since  3.9.0
 */
class PluginElementField extends ListField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.9.0
     */
    protected $type = 'PluginElement';

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

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

The same content is in 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.