eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\Identifier\Section::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 ContentView) {
            return false;
        }
        $contentInfo = $view->getContent()->contentInfo;
        $section = $this->repository->sudo(function (Repository $repository) use($contentInfo) {
            return $repository->getSectionService()->loadSection($contentInfo->sectionId);
        });
        return isset($this->values[$section->identifier]);
    }