lib/DocumentMapper/NativeDocumentMapper.php
private function getBlockTranslationFields(Content $content, $languageCode)
    {
        $fields = [];

        if ($this->blockTranslationFieldMapper->accept($content, $languageCode)) {
            $fields = $this->blockTranslationFieldMapper->mapFields($content, $languageCode);
        }

        return $fields;
    }
private function getBlockTranslationFields(Content $content, $languageCode)
    {
        $fields = [];

        if ($this->blockTranslationFieldMapper->accept($content, $languageCode)) {
            $fields = $this->blockTranslationFieldMapper->mapFields($content, $languageCode);
        }

        return $fields;
    }
Returns an array of fields for the given $content and $languageCode, to be added to the
corresponding block documents.

@param \eZ\Publish\SPI\Persistence\Content $content
@param string $languageCode

@return \eZ\Publish\SPI\Search\Field[]