ILIAS  release_7 Revision v7.30-3-g800a261c036
ExamplePlugin.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
21
27{
33 {
34 // we need the previous renderer, which has possibly been exchanged, so we can
35 // wrap it by our renderer and keep the rendering chain alive.
36 $renderer = $dic->raw('ui.renderer');
37
38 return static function () use ($dic, $renderer) {
39 // you may also pass additional dependencies like the ResourceRegistry to
40 // properly register you assets.
41 return new HelloWorldRenderer(
42 $dic['ui.resource_registry'],
43 $renderer($dic)
44 );
45 };
46 }
47
48 public function getPluginName(): string
49 {
50 return "NoRealPlugin";
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
Extend some more concrete implementation of.
exchangeUIRendererAfterInitialization(Container $dic)
This method can ALWAYS replace the UI renderer, because the method is only ever invoked if a plugin i...
getPluginName()
Get Plugin Name.
Extend the DecoratedRenderer to align your renderer with other potential renderers in ILIAS,...
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:19
Class ilUserInterfaceHookPlugin.
$dic
Definition: result.php:13