ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FormAdapterGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Repository\Form\FormAdapterGUI as RepositoryFormAdapterGUI;
25
26class FormAdapterGUI extends RepositoryFormAdapterGUI
27{
28 public function disabledGroup($disabled = true): self
29 {
30 if ($disabled && ($field = $this->getLastField()) && $field instanceof SwitchableGroup) {
31 $field = $field->withDisabledGroupSwitch(true);
32 $this->disable[$this->last_key] = true;
33 $this->replaceLastField($field);
34 }
35 return $this;
36 }
37}