Neos\ContentRepository\Security\Authorization\Privilege\Node\NodePrivilegeContext::isAncestorOrDescendantNodeOf PHP Метод

isAncestorOrDescendantNodeOf() публичный Метод

Example: isAncestorOrDescendantNodeOf('/sites/some') matches for the nodes "/sites", "/sites/some", "/sites/some/sub" but not "/sites/other"
public isAncestorOrDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean
$nodePathOrIdentifier string The identifier or absolute path of the node to match
Результат boolean TRUE if the given node matches otherwise false
    public function isAncestorOrDescendantNodeOf($nodePathOrIdentifier)
    {
        return $this->isAncestorNodeOf($nodePathOrIdentifier) || $this->isDescendantNodeOf($nodePathOrIdentifier);
    }