Copied!

ContentTranslationFieldMapper

ContentTranslationFieldMapper.php : 17

Base class for Content translation document field mapper.

Content translation document field mapper maps Content in a specific translation to the search fields for Content document.

Methods

publicaccept()

ContentTranslationFieldMapper.php : 26

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

public abstract accept(Content $content, string $languageCode) : bool

Parameters

Name Type Default value Description
$content Content - -
$languageCode string - -

Return values

bool

publicmapFields()

ContentTranslationFieldMapper.php : 35

Maps given $content for $languageCode to an array of search fields.

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

Parameters

Name Type Default value Description
$content Content - -
$languageCode string - -

Return values

array<string|int, Field>