Interface

eZ\Publish\Core\MVC\Symfony\Matcher\Block\MatcherInterface

interface MatcherInterface implements ViewMatcherInterface

Main interface for block matchers.

Methods

setMatchingConfig(mixed $matchingConfig)

Registers the matching configuration for the matcher.

from ViewMatcherInterface
bool match(View $view)

Matches the $view against a set of matchers.

from ViewMatcherInterface
bool matchBlock(Block $block)

Checks if a Block object matches.

Details

in ViewMatcherInterface 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.

in ViewMatcherInterface at line 31
public bool match(View $view)

Matches the $view against a set of matchers.

Parameters

View $view

Return Value

bool

at line 26
public bool matchBlock(Block $block)

Checks if a Block object matches.

Parameters

Block $block

Return Value

bool