3 declare(strict_types=1);
45 return $component->getContent();
53 return [Component\Legacy\Legacy::class];
60 return $component->withAdditionalOnLoadCode(
function (
$id) use ($custom_signals):
string {
62 foreach ($custom_signals as $custom_signal) {
63 $signal_id = $custom_signal[
'signal'];
64 $signal_code = $custom_signal[
'js_code'];
65 $code .=
"$(document).on('$signal_id', function(event, signalData) { $signal_code });";
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
registerSignals(Legacy $component)
getAllCustomSignals()
Get a list of all registered signals and their custom JavaScript code.
getComponentInterfaceName()
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.