Interface

eZ\Publish\Core\MVC\Symfony\Matcher\ViewMatcherInterface

interface ViewMatcherInterface

Matches a View against a set of matchers.

Methods

setMatchingConfig(mixed $matchingConfig)

Registers the matching configuration for the matcher.

bool match(View $view)

Matches the $view against a set of matchers.

Details

at line 22
public setMatchingConfig(mixed $matchingConfig)

Registers the matching configuration for the matcher.

It's up to the implementor to validate $matchingConfig since it can be anything configured by the end-developer.

Parameters

mixed $matchingConfig

Exceptions

InvalidArgumentException Should be thrown if $matchingConfig is not valid.

at line 31
public bool match(View $view)

Matches the $view against a set of matchers.

Parameters

View $view

Return Value

bool