コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function applies($object)
 {
     if (parent::applies($object)) {
         /** @var \Drupal\taxonomy\TermInterface $object */
         $vid = $this->configFactory->get('forum.settings')->get('vocabulary');
         return $object->getVocabularyId() == $vid;
     }
     return FALSE;
 }