src/Sulu/Bundle/CategoryBundle/Api/Category.php
public function getKeywords()
    {
        $keywords = [];

        $translation = $this->getTranslation(true);

        if (!$translation) {
            return $keywords;
        }

        foreach ($translation->getKeywords() as $keyword) {
            $keywords[] = $keyword->getKeyword();
        }

        return $keywords;
    }
public function getKeywords()
    {
        $keywords = [];

        $translation = $this->getTranslation(true);

        if (!$translation) {
            return $keywords;
        }

        foreach ($translation->getKeywords() as $keyword) {
            $keywords[] = $keyword->getKeyword();
        }

        return $keywords;
    }
public function getKeywords ( ) { $ keywords = [ ] ; $ translation = $ this -> getTranslation ( true ) ; if ( ! $ translation ) { return $ keywords ; } foreach ( $ translation -> getKeywords ( ) as $ keyword ) { $ keywords [ ] = $ keyword -> getKeyword ( ) ; } return $ keywords ; }
Returns the keywords of the category translations.

@return string[]
Returns the keywords of the category translations .