src/Sulu/Bundle/CategoryBundle/Category/KeywordManager.php
private function findSynonym(KeywordInterface $keyword)
    {
        return $this->keywordRepository->findByKeyword($keyword->getKeyword(), $keyword->getLocale());
    }
private function findSynonym(KeywordInterface $keyword)
    {
        return $this->keywordRepository->findByKeyword($keyword->getKeyword(), $keyword->getLocale());
    }
private function findSynonym ( KeywordInterface $ keyword ) { return $ this -> keywordRepository -> findByKeyword ( $ keyword -> getKeyword ( ) , $ keyword -> getLocale ( ) ) ; }
Find the same keyword in the database or returns null if no synonym exists.

@param KeywordInterface $keyword

@return KeywordInterface|null
Find the same keyword in the database or returns null if no synonym exists .