- md5
- d8755e808739f7896f466c5b00197d29
- sha1
- 0a153c8cdeee6b1821f88ab8ad12d15fd2b2ef3a
- sha256
- d9ec1d640b7118eb1b876d567d9fdc8a4fba953efd43002ee416c45ecf6f285d
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2016 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;
// phpcs:disable PSR1.Files.SideEffects
\defined('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Form Field class for the Joomla Platform.
* Provides radio button inputs using default styling
*
* @since 4.0.0
*/
class RadiobasicField extends ListField
{
/**
* The form field type.
*
* @var string
* @since 4.0.0
*/
protected $type = 'Radiobasic';
/**
* Name of the layout being used to render the field
*
* @var string
* @since 4.0.0
*/
protected $layout = 'joomla.form.field.radiobasic';
/**
* Method to get the radio button field input markup.
*
* @return string The field input markup.
*
* @since 4.0.0
*/
protected function getInput()
{
return $this->getRenderer($this->layout)->render($this->getLayoutData());
}
/**
* Method to get the data to be passed to the layout for rendering.
*
* @return array
*
* @since 4.0.0
*/
protected function getLayoutData()
{
$data = parent::getLayoutData();
$extraData = [
'options' => $this->getOptions(),
'value' => (string) $this->value,
];
return array_merge($data, $extraData);
}
}
The same content is in 53 releases, Joomla 4.3.0-beta1 to 4.4.14. See them all, or every version of this file.