ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
HasViewControls.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\UI\Component\ViewControl\HasViewControls as HasViewControlsInterface;
24
29{
30 protected ?array $view_controls = null;
31
35 public function withViewControls(array $view_controls): HasViewControlsInterface
36 {
40 $clone = clone $this;
41 $clone->view_controls = $view_controls;
42 return $clone;
43 }
47 public function getViewControls(): ?array
48 {
49 return $this->view_controls;
50 }
51}
Trait for adding view controls to a component.
trait HasViewControls
Trait for panels supporting view controls.