CoreFiles by mySites.guru
ContentlanguageField.php45 lines, 1,045 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
26f102059aef38c5dd1dd6720a237454
sha1
b56ce6c70626e602fc1904ee67df34943b117c19
sha256
289cd90c1e0b85ec73e1ba71d1434ef263fae6b6ab396a87d20aec08067db559
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2009 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;

use Joomla\CMS\HTML\HTMLHelper;

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

/**
 * Provides a list of content languages
 *
 * @see    \Joomla\CMS\Form\Field\LanguageField for a select list of application languages.
 * @since  1.6
 */
class ContentlanguageField extends ListField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  1.6
     */
    public $type = 'ContentLanguage';

    /**
     * Method to get the field options for content languages.
     *
     * @return  array  The options the field is going to show.
     *
     * @since   1.6
     */
    protected function getOptions()
    {
        return array_merge(parent::getOptions(), HTMLHelper::_('contentlanguage.existing'));
    }
}

The same content is in 33 releases, Joomla 4.2.1 to 4.3.4. See them all, or every version of this file.