CoreFiles by mySites.guru
PluginstatusField.php41 lines, 781 bytes, from Joomla_4.2.7-Stable-Full_Package.zip
Raw History Compare with 4.2.6
md5
410c1f547be28680b45edb06d9f9f464
sha1
651d7c0ecef1b6c24cbfaa2bbd711474afd9004e
sha256
2a8b831aa1ebcd17be06fcf6efe52b8cdc8946a4d843d1cc5709a2911a23b4de
<?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  array
     * @since  3.5
     */
    protected $predefinedOptions = [
        '0'  => 'JDISABLED',
        '1'  => 'JENABLED',
    ];
}

The same content is in 6 releases, Joomla 4.2.7-rc1 to 4.3.0-alpha3. See them all, or every version of this file.