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 ContentValueView) {
return false;
}
$contentType = $this->repository->getContentTypeService()->loadContentType($view->getContent()->contentInfo->contentTypeId);
return isset($this->values[$contentType->identifier]);
}