getLocale() public method

Get locale.
public getLocale ( ) : string
return string
Exemplo n.º 1
0
 /**
  * Find the same keyword in the database or returns null if no synonym exists.
  *
  * @param Keyword $keyword
  *
  * @return Keyword|null
  */
 private function findSynonym(KeywordInterface $keyword)
 {
     return $this->keywordRepository->findByKeyword($keyword->getKeyword(), $keyword->getLocale());
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function equals(KeywordInterface $keyword)
 {
     return $keyword->getKeyword() === $this->getKeyword() && $keyword->getLocale() === $this->getLocale();
 }