protected function getItemTypeConfiguration(Item $item, $language = 0)
    {
        $indexConfigurationName = $item->getIndexingConfigurationName();
        $fields = $this->getFieldConfigurationFromItemRecordPage($item, $language, $indexConfigurationName);
        if (count($fields) === 0) {
            $fields = $this->getFieldConfigurationFromItemRootPage($item, $language, $indexConfigurationName);
            if (count($fields) === 0) {
                throw new \RuntimeException('The item indexing configuration "' . $item->getIndexingConfigurationName() .
                    '" on root page uid ' . $item->getRootPageUid() . ' could not be found!', 1455530112);
            }
        }

        return $fields;
    }
protected function getItemTypeConfiguration(Item $item, $language = 0)
    {
        $indexConfigurationName = $item->getIndexingConfigurationName();
        $fields = $this->getFieldConfigurationFromItemRecordPage($item, $language, $indexConfigurationName);
        if (count($fields) === 0) {
            $fields = $this->getFieldConfigurationFromItemRootPage($item, $language, $indexConfigurationName);
            if (count($fields) === 0) {
                throw new \RuntimeException('The item indexing configuration "' . $item->getIndexingConfigurationName() .
                    '" on root page uid ' . $item->getRootPageUid() . ' could not be found!', 1455530112);
            }
        }

        return $fields;
    }
protected function getItemTypeConfiguration ( Item $ item , $ language = 0 ) { $ indexConfigurationName = $ item -> getIndexingConfigurationName ( ) ; $ fields = $ this -> getFieldConfigurationFromItemRecordPage ( $ item , $ language , $ indexConfigurationName ) ; if ( count ( $ fields ) === 0 ) { $ fields = $ this -> getFieldConfigurationFromItemRootPage ( $ item , $ language , $ indexConfigurationName ) ; if ( count ( $ fields ) === 0 ) { throw new \ RuntimeException ( 'The item indexing configuration "' . $ item -> getIndexingConfigurationName ( ) . '" on root page uid ' . $ item -> getRootPageUid ( ) . ' could not be found!' , 1455530112 ) ; } } return $ fields ; }
Gets the configuration how to process an item's fields for indexing.

@param Item $item An index queue item
@param int $language Language ID
@throws \RuntimeException
@return array Configuration array from TypoScript
Gets the configuration how to process an item s fields for indexing .