ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Content.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
33{
37 public function getContent(): string;
38
44 public function withCustomSignal(string $signal_name, string $js_code): static;
45
52 public function getCustomSignal(string $signal_name): Signal;
53}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface to be extended by components that have the possibility to bind to Javascript.
This is the interface for Blocks.
Definition: Block.php:28
getContent()
Get content as string stored in this component.
withCustomSignal(string $signal_name, string $js_code)
Get a legacy component like this, but with an additional signal with custom JavaScript code.
getCustomSignal(string $signal_name)
Get signal with custom JavaScript code.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.