Interface

eZ\Publish\Core\MVC\Symfony\Matcher\MatcherFactoryInterface

interface MatcherFactoryInterface

Methods

array|null match(View $view)

Checks if $valueObject has a usable configuration for $viewType.

Details

at line 25
public array|null match(View $view)

Checks if $valueObject has a usable configuration for $viewType.

If so, the configuration hash will be returned.

$valueObject can be for example a Location or a Content object.

Parameters

View $view

Return Value

array|null The matched configuration as a hash, containing template or controller to use, or null if not matched.