ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
VocabularyBridge.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
27 trait VocabularyBridge
28 {
29  protected VocabulariesInterface $vocabularies;
30 
31  public function __construct(VocabulariesInterface $vocabularies)
32  {
33  $this->vocabularies = $vocabularies;
34  }
35 
39  public function vocabularies(
40  ElementInterface $element,
41  bool $ignore_marker
42  ): \Generator {
43  yield from $this->vocabularies->filteredVocabulariesForElement(
44  $element,
45  $ignore_marker
46  );
47  }
48 }
__construct()
Constructor setup ILIAS global object public.
Definition: class.ilias.php:62
vocabularies(ElementInterface $element, bool $ignore_marker)