Class

eZ\Publish\Core\MVC\Symfony\Matcher\ContentBasedMatcherFactory

abstract class ContentBasedMatcherFactory extends AbstractMatcherFactory

Constants

MATCHER_RELATIVE_NAMESPACE

Methods

__construct(Repository $repository, array $matchConfig = array())

from AbstractMatcherFactory
array|null match(View $view)

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

from AbstractMatcherFactory

Details

public __construct(Repository $repository, array $matchConfig = array())

Parameters

Repository $repository
array $matchConfig

in AbstractMatcherFactory at line 115
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.