ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilHelpUITextRetriever.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
40{
41 public function getHelpText(Help\Purpose $purpose, Help\Topic ...$topics): array
42 {
43 global $DIC;
44
45 if ($purpose->isTooltip()) {
46 return array_filter(
47 array_map(
48 fn($topic) => $DIC->help()->internal()->domain()->tooltips()->getTooltipPresentationText($topic->get()),
50 )
51 );
52 }
53
54 return [];
55 }
56}
A purpose describes the intended use for a certain help text.
Definition: Purpose.php:47
This is just a class that marks a string as a help topic.
Definition: Topic.php:27
This describes a facility that the UI framework can use to retrieve some help text.
getHelpText(Help\Purpose $purpose, Help\Topic ... $topics)
This describes a facility that the UI framework can use to retrieve some help text.
global $DIC
Definition: shib_login.php:26