19 declare(strict_types=1);
60 $path = $this->path_factory->toElement($element);
62 $tag = $assignment->tag();
76 foreach ($this->tag_assignments as $assignment) {
77 if ($assignment->matchesPath($path)) {
95 if (in_array($index, iterator_to_array($tag->
indices()),
true)) {
106 $navigator = $this->navigator_factory->navigator($path, $element);
108 foreach ($navigator->elementsAtFinalStep() as $sibling_element) {
109 if ($sibling_element === $element) {
114 throw new \ilMDStructureException(
'Invalid metadata set');