Sulu\Bundle\CategoryBundle\Entity\CategoryTranslation::hasKeyword PHP Méthode

hasKeyword() public méthode

public hasKeyword ( Sulu\Bundle\CategoryBundle\Entity\KeywordInterface $keyword )
$keyword Sulu\Bundle\CategoryBundle\Entity\KeywordInterface
    public function hasKeyword(KeywordInterface $keyword)
    {
        return $this->getKeywords()->exists(function ($key, KeywordInterface $element) use($keyword) {
            return $element->equals($keyword);
        });
    }