eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\Id\ParentContentType::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 false;
        }
        $parent = $this->loadParentLocation($view->getLocation()->parentLocationId);
        return isset($this->values[$parent->getContentInfo()->contentTypeId]);
    }