CoreFiles by mySites.guru
ModulesModuleField.php46 lines, 1,015 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
fa76cbc844e41351ddcac2695bdb5fc1
sha1
b125ccf86f32c60fdae62c154f00614207c490a9
sha256
5c0c0578c1c4784a28d8822586781b82f1f421656a90aebdeac0f63bfffbff69
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Modules\Administrator\Field;

defined('JPATH_BASE') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Form\Field\ListField;
use Joomla\Component\Modules\Administrator\Helper\ModulesHelper;

/**
 * Modules Module field.
 *
 * @since  3.4.2
 */
class ModulesModuleField extends ListField
{
	/**
	 * The form field type.
	 *
	 * @var    string
	 * @since  3.4.2
	 */
	protected $type = 'ModulesModule';

	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   3.4.2
	 */
	public function getOptions()
	{
		$options  = ModulesHelper::getModules(Factory::getApplication()->getUserState('com_modules.modules.client_id', 0, 'int'));

		return array_merge(parent::getOptions(), $options);
	}
}

No other release has this exact content. See every version of this file.