Interface

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

interface MatcherInterface implements MatcherInterface

Main interface for content/location matchers.

Methods

setMatchingConfig(mixed $matchingConfig)

Registers the matching configuration for the matcher.

from MatcherInterface
bool matchLocation(Location $location)

Checks if a Location object matches.

bool matchContentInfo(ContentInfo $contentInfo)

Checks if a ContentInfo object matches.

Details

in MatcherInterface at line 28
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 27
public bool matchLocation(Location $location)

Checks if a Location object matches.

Parameters

Location $location

Return Value

bool

at line 36
public bool matchContentInfo(ContentInfo $contentInfo)

Checks if a ContentInfo object matches.

Parameters

ContentInfo $contentInfo

Return Value

bool