Class

eZ\Publish\Core\Search\Elasticsearch\Content\CriterionVisitor\ContentTypeIdentifierIn

class ContentTypeIdentifierIn extends CriterionVisitor

Visits the ContentTypeIdentifier criterion.

Methods

bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

mixed visitFilter(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch filter representation.

mixed visitQuery(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch query representation.

from CriterionVisitor
__construct(Handler $contentTypeHandler)

Create from content type handler.

Details

at line 46
public bool canVisit(Criterion $criterion)

Check if visitor is applicable to current criterion.

Parameters

Criterion $criterion

Return Value

bool

at line 65
public mixed visitFilter(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch filter representation.

Parameters

Criterion $criterion
CriterionVisitorDispatcher $dispatcher
array $languageFilter

Return Value

mixed Hash representation of Elasticsearch filter abstract syntax tree

in CriterionVisitor at line 55
public mixed visitQuery(Criterion $criterion, CriterionVisitorDispatcher $dispatcher, array $languageFilter)

Map field value to a proper Elasticsearch query representation.

By default this method fallbacks on {@link self::visitFilter()}, override it as needed.

Parameters

Criterion $criterion
CriterionVisitorDispatcher $dispatcher
array $languageFilter

Return Value

mixed Hash representation of Elasticsearch query abstract syntax tree

at line 34
public __construct(Handler $contentTypeHandler)

Create from content type handler.

Parameters

Handler $contentTypeHandler