CoreFiles by mySites.guru
TemplatelocationField.php46 lines, 960 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
2ec537bb293e6335264f9412faaaf406
sha1
4944a89c479a4b4d5e620a475712bf0ffebe8fbc
sha256
f16fcb4c8fd730a6bb948dc67ae635a0067eec9729fa73c492e4407887f3b05f
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_templates
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
namespace Joomla\Component\Templates\Administrator\Field;

defined('_JEXEC') or die;

use Joomla\CMS\Form\FormHelper;
use Joomla\Component\Templates\Administrator\Helper\TemplatesHelper;

FormHelper::loadFieldClass('list');

/**
 * Template Location field.
 *
 * @since  3.5
 */
class TemplatelocationField extends \JFormFieldList
{
	/**
	 * The form field type.
	 *
	 * @var	   string
	 * @since  3.5
	 */
	protected $type = 'TemplateLocation';

	/**
	 * Method to get the field options.
	 *
	 * @return  array  The field option objects.
	 *
	 * @since   3.5
	 */
	public function getOptions()
	{
		$options = TemplatesHelper::getClientOptions();

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

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