ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PluginIdentificationProvider.php
Go to the documentation of this file.
2
6
14{
15
19 protected $plugin_id = "";
20
21
31 {
32 parent::__construct($provider, $serializer, $map);
33 $this->plugin_id = $plugin_id;
34 }
35
36
40 public function identifier(string $identifier_string) : IdentificationInterface
41 {
42 if (isset(self::$instances[$identifier_string])) {
43 return self::$instances[$identifier_string];
44 }
45
46 $identification = new PluginIdentification($this->plugin_id, $identifier_string, $this->class_name, $this->serializer, $this->provider->getProviderNameForPresentation());
47 $this->map->addToMap($identification);
48
49 return self::$instances[$identifier_string] = $identification;
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
identifier(string $identifier_string)
IdentificationInterface use this CoreIdentification to put into your GlobalScreen-elements.
__construct(Provider $provider, string $plugin_id, SerializerInterface $serializer, IdentificationMap $map)
PluginIdentificationProvider constructor.