Copied!

ContentFieldMapper

ContentFieldMapper.php : 16

Base class for Content document field mapper.

Content document field mapper maps Content to the search fields for Content document.

Methods

publicaccept()

ContentFieldMapper.php : 23

Indicates if the mapper accepts the given $content for mapping.

public abstract accept(Content $content) : bool

Parameters

Name Type Default value Description
$content Content - -

Return values

bool

publicmapFields()

ContentFieldMapper.php : 30

Maps given $content to an array of search fields.

public abstract mapFields(Content $content) : array<string|int, Field>

Parameters

Name Type Default value Description
$content Content - -

Return values

array<string|int, Field>