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 {
33  public function tagsForElement(
34  BaseElementInterface $element
35  ): \Generator {
36  foreach (parent::tagsForElement($element) as $tag) {
37  if (!($tag instanceof TagInterface)) {
38  throw new \ilMDVocabulariesException('Invalid dictionary');
39  }
40  yield $tag;
41  }
42  }
43 }