ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PluggedManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 protected \ilLanguage $lng;
29 protected mixed $component_factory;
30
31 public function __construct()
32 {
33 global $DIC;
34 $this->component_factory = $DIC["component.factory"] ?? null;
35 $this->lng = $DIC->language();
36 }
37
38 public function getPluginLangVars(): array
39 {
40 $lvs = [];
42 foreach ($this->component_factory->getActivePluginsInSlot("pgcp") as $plugin) {
43 $lvs["pc_plugged_" . $plugin->getPluginName()] =
44 $this->lng->txt("copg_plugin") . " (" . $plugin->getPluginName() . ")";
45 }
46 return $lvs;
47 }
48}
global $DIC
Definition: shib_login.php:26