ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MessageBoxRendererFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 public function getRendererInContext(Component\Component $component, array $contexts): Render\AbstractComponentRenderer
29 {
30 if (in_array('StateStatePrompt', $contexts)) {
31 return new PromptContextRenderer(
32 $this->ui_factory,
33 $this->tpl_factory,
34 $this->lng,
35 $this->js_binding,
36 $this->image_path_resolver,
37 $this->data_factory,
38 $this->help_text_retriever,
39 $this->upload_limit_resolver
40 );
41 }
42 return new Renderer(
43 $this->ui_factory,
44 $this->tpl_factory,
45 $this->lng,
46 $this->js_binding,
47 $this->image_path_resolver,
48 $this->data_factory,
49 $this->help_text_retriever,
50 $this->upload_limit_resolver
51 );
52 }
53}