eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\Depth::match PHP Method

match() public method

public match ( eZ\Publish\Core\MVC\Symfony\View\View $view )
$view eZ\Publish\Core\MVC\Symfony\View\View
    public function match(View $view)
    {
        if ($view instanceof LocationValueView) {
            return isset($this->values[$view->getLocation()->depth]);
        }
        if ($view instanceof ContentValueView) {
            return $this->matchContentInfo($view->getContent()->contentInfo);
        }
        return false;
    }