CoreFiles by mySites.guru
PluginstatusField.php41 lines, 782 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
50945353d13c9e4a8152bf8575a72190
sha1
37104e42d78ea0b9bc81d25bfe64656baeadd191
sha256
6c4923312cc59cff4784d25a4c28b09ac6008629ce1f4afda100cb79923134d4
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Form\Field;

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

/**
 * Plugin Status field.
 *
 * @since  3.5
 */
class PluginstatusField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  3.5
     */
    public $type = 'Plugin_Status';

    /**
     * Available statuses
     *
     * @var  string[]
     * @since  3.5
     */
    protected $predefinedOptions = [
        '0' => 'JDISABLED',
        '1' => 'JENABLED',
    ];
}

The same content is in 37 releases, Joomla 4.4.0-alpha1 to 4.4.14. See them all, or every version of this file.