Neos\Neos\Ui\Domain\Service\NodeTreeBuilder::isInRootLine PHP Method

isInRootLine() protected method

protected isInRootLine ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $haystack = null, TYPO3\TYPO3CR\Domain\Model\NodeInterface $needle )
$haystack TYPO3\TYPO3CR\Domain\Model\NodeInterface
$needle TYPO3\TYPO3CR\Domain\Model\NodeInterface
    protected function isInRootLine(NodeInterface $haystack = null, NodeInterface $needle)
    {
        if ($haystack === null) {
            return false;
        }
        return mb_strrpos($haystack->getPath(), $needle->getPath(), null, 'UTF-8') === 0;
    }