CoreFiles by mySites.guru
ContentlanguageField.php45 lines, 1,048 bytes, from Joomla_4.4.2-Stable-Full_Package.zip
Raw History Compare with 4.4.1
md5
2188eb4b92f5d0fb9094b07cbb2dae77
sha1
b49ed9a7ade9247028bb537e14c3cd6bb7118fc5
sha256
f463c7c13b0140dbc1a551065eb71f1f3a2b4e45b9631547b69590bd551c7b9e
<?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  object[]  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 37 releases, Joomla 4.4.0-alpha1 to 4.4.14. See them all, or every version of this file.