ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
$renderer
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...
Extend the DecoratedRenderer to align your renderer with other potential renderers in ILIAS,...
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$dic
Definition: ltiresult.php:33