protected function getMappedFields(Document $pageDocument)
    {
        $fields = [];

        $mappedFieldNames = $this->configuration->getIndexQueueMappedFieldsByConfigurationName($this->pageIndexingConfigurationName);

        foreach ($mappedFieldNames as $mappedFieldName) {
            if (!AbstractIndexer::isAllowedToOverrideField($mappedFieldName)) {
                throw new InvalidFieldNameException(
                    'Must not overwrite field "type".',
                    1435441863
                );
            }
            $fields[$mappedFieldName] = $this->resolveFieldValue($mappedFieldName, $pageDocument);
        }

        return $fields;
    }
protected function getMappedFields(Document $pageDocument)
    {
        $fields = [];

        $mappedFieldNames = $this->configuration->getIndexQueueMappedFieldsByConfigurationName($this->pageIndexingConfigurationName);

        foreach ($mappedFieldNames as $mappedFieldName) {
            if (!AbstractIndexer::isAllowedToOverrideField($mappedFieldName)) {
                throw new InvalidFieldNameException(
                    'Must not overwrite field "type".',
                    1435441863
                );
            }
            $fields[$mappedFieldName] = $this->resolveFieldValue($mappedFieldName, $pageDocument);
        }

        return $fields;
    }
protected function getMappedFields ( Document $ pageDocument ) { $ fields = [ ] ; $ mappedFieldNames = $ this -> configuration -> getIndexQueueMappedFieldsByConfigurationName ( $ this -> pageIndexingConfigurationName ) ; foreach ( $ mappedFieldNames as $ mappedFieldName ) { if ( ! AbstractIndexer :: isAllowedToOverrideField ( $ mappedFieldName ) ) { throw new InvalidFieldNameException ( 'Must not overwrite field "type".' , 1435441863 ) ; } $ fields [ $ mappedFieldName ] = $ this -> resolveFieldValue ( $ mappedFieldName , $ pageDocument ) ; } return $ fields ; }
Gets the mapped fields as an array mapping field names to values.

@throws InvalidFieldNameException
@param Document $pageDocument The original page document.
@return array An array mapping field names to their values.
Gets the mapped fields as an array mapping field names to values .