ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilHelpUITextRetriever.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\UI\Help;
22 
40 {
41  public function getHelpText(Help\Purpose $purpose, Help\Topic ...$topics): array
42  {
43  if ($purpose->isTooltip()) {
44  return array_filter(
45  array_map(
46  fn($topic) => ilHelp::getTooltipPresentationText($topic->get()),
47  $topics
48  )
49  );
50  }
51 
52  return [];
53  }
54 }
This is just a class that marks a string as a help topic.
Definition: Topic.php:26
This describes a facility that the UI framework can use to retrieve some help text.
A purpose describes the intended use for a certain help text.
Definition: Purpose.php:46
getHelpText(Help\Purpose $purpose, Help\Topic ... $topics)