eZ\Publish\Core\MVC\Symfony\Matcher\MatcherFactoryInterface::match PHP Method

match() public method

If so, the configuration hash will be returned. $valueObject can be for example a Location or a Content object.
public match ( eZ\Publish\Core\MVC\Symfony\View\View $view ) : array | null
$view eZ\Publish\Core\MVC\Symfony\View\View
return array | null The matched configuration as a hash, containing template or controller to use, or null if not matched.
    public function match(View $view);

Usage Example

コード例 #1
0
 public function getView(View $view)
 {
     if (($configHash = $this->matcherFactory->match($view)) === null) {
         return null;
     }
     return $this->buildContentView($configHash);
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Matcher\MatcherFactoryInterface::match
MatcherFactoryInterface