2 namespace TYPO3\CMS\Form\Domain\Model\Json;
27 public $xtype =
'typo3-form-wizard-elements-predefined-checkboxgroup';
35 'attributes' => array(),
43 'validation' => array()
68 parent::setParameters($parameters);
81 if (is_array($parameters)) {
82 $keys = \TYPO3\CMS\Core\TypoScript\TemplateService::sortedKeyList($parameters);
83 foreach ($keys as $key) {
84 $class = $parameters[$key];
85 if ((
int)$key && strpos($key,
'.') ===
false) {
86 if (isset($parameters[$key .
'.']) && $class ===
'CHECKBOX') {
87 $childElementArguments = $parameters[$key .
'.'];
88 if (isset($childElementArguments[
'checked'])) {
89 $childElementArguments[
'attributes'][
'selected'] =
'selected';
90 unset($childElementArguments[
'checked']);
92 if (isset($childElementArguments[
'label.'])) {
93 $childElementArguments[
'data'] = $childElementArguments[
'label.'][
'value'];
94 unset($childElementArguments[
'label.']);
96 $this->configuration[
'options'][] = $childElementArguments;
111 if (isset($parameters[
'name'])) {
112 $this->configuration[
'various'][
'name'] = $parameters[
'name'];