ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
LOMDictionary.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
27 
28 class LOMDictionary extends BaseDictionary implements DictionaryInterface
29 {
30  public function tagForElement(
31  BaseElementInterface $element
32  ): ?TagInterface {
33  foreach (parent::tagsForElement($element) as $tag) {
34  if (!($tag instanceof TagInterface)) {
35  throw new \ilMDRepositoryException('Invalid dictionary');
36  }
37  return $tag;
38  }
39  return null;
40  }
41 }
tagForElement(BaseElementInterface $element)