CoreFiles by mySites.guru
list.php31 lines, 640 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
259481f42e726354285665c48496a3b8
sha1
26b530be778e3306c1b45ca31a4b4f16370fb883
sha256
f64a01183c8a9c741f1a4af174b43e614fec880abb8876a8af3f0bd0b850bf8a
<?php

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

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

$fieldValue = $field->value;

if ($fieldValue == '') {
    return;
}

$fieldValue = (array) $fieldValue;
$texts      = [];
$options    = $this->getOptionsFromField($field);

foreach ($options as $value => $name) {
    if (in_array((string) $value, $fieldValue)) {
        $texts[] = Text::_($name);
    }
}

echo htmlentities(implode(', ', $texts));

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