ILIAS  release_7 Revision v7.30-3-g800a261c036
CoreIdentificationProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
28{
32 public function identifier(string $identifier_string) : IdentificationInterface
33 {
34 if (isset(self::$instances[$identifier_string])) {
35 return self::$instances[$identifier_string];
36 }
37
38 $core_identification = new CoreIdentification(
39 $identifier_string,
40 $this->class_name,
41 $this->serializer,
42 $this->provider->getProviderNameForPresentation()
43 );
44 $this->map->addToMap($core_identification);
45
46 return self::$instances[$identifier_string] = $core_identification;
47 }
48}
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.