public function isDescendantNodeOf($nodePathOrIdentifier) { $nodePath = $this->resolveNodePath($nodePathOrIdentifier); if (is_bool($nodePath)) { return $nodePath; } return substr($this->node->getPath() . '/', 0, strlen($nodePath)) === $nodePath; }