protected function addKeywordsField(Document $document, $pageRecord)
    {
        if (!isset($pageRecord['keywords'])) {
            return;
        }

        $keywords = array_unique(GeneralUtility::trimExplode(',', $pageRecord['keywords'], true));
        foreach ($keywords as $keyword) {
            $document->addField('keywords', $keyword);
        }
    }
protected function addKeywordsField(Document $document, $pageRecord)
    {
        if (!isset($pageRecord['keywords'])) {
            return;
        }

        $keywords = array_unique(GeneralUtility::trimExplode(',', $pageRecord['keywords'], true));
        foreach ($keywords as $keyword) {
            $document->addField('keywords', $keyword);
        }
    }
protected function addKeywordsField ( Document $ document , $ pageRecord ) { if ( ! isset ( $ pageRecord [ 'keywords' ] ) ) { return ; } $ keywords = array_unique ( GeneralUtility :: trimExplode ( ',' , $ pageRecord [ 'keywords' ] , true ) ) ; foreach ( $ keywords as $ keyword ) { $ document -> addField ( 'keywords' , $ keyword ) ; } }
Adds keywords, multi valued.

@param Document $document
@param array $pageRecord
Adds keywords multi valued .