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 // create an instance of the renderer using the Closure from the container.
40 return new ExampleRenderer($renderer($dic));
41 };
42 }
43
44 public function getPluginName(): string
45 {
46 return "NoRealPlugin";
47 }
48}
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