19declare(strict_types=1);
51 bool $ignore_markers =
true
53 $slot_path = $this->slots_handler->pathForSlot($slot);
54 $path_to_element = $this->path_factory->toElement($element);
56 if ($slot_path->toString() !== $path_to_element->toString()) {
60 if (!$this->slots_handler->isSlotConditional($slot)) {
64 $condition = $this->slots_handler->conditionForSlot($slot);
65 return $this->
checkCondition($element, $condition, $ignore_markers);
73 $value = $this->getDataValueFromRelativePath(
78 return $value === $condition->
value();
86 $element = $this->navigator_factory->navigator(
89 )->lastElementAtFinalStep();
91 if (!isset($element)) {
99 return $element->
getMarker()->dataValue();
101 return $element->
getData()->value();