eZ\Publish\Core\MVC\Symfony\Matcher\ContentMatcherFactory::doMatch PHP Method

doMatch() protected method

Checks if $valueObject matches $matcher rules.
protected doMatch ( eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher, eZ\Publish\Core\MVC\Symfony\View\View $view ) : boolean
$matcher eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface
$view eZ\Publish\Core\MVC\Symfony\View\View
return boolean
    protected function doMatch(MatcherInterface $matcher, View $view)
    {
        if (!$view instanceof ContentValueView) {
            throw new InvalidArgumentException('View must be a ContentValueView instance');
        }
        return $matcher->match($view);
    }
ContentMatcherFactory