/** * {@inheritdoc} */ protected function taxonIsDiscipline($taxon) { // First check the parent implementation. If it is false, use a legacy // method. if (parent::taxonIsDiscipline($taxon)) { return true; } else { return in_array($this->getTermType($taxon['id']), array('fachbereich', 'fach', 'kompetenzbereich', 'handlungs_themenaspekt')); } }
/** * {@inheritdoc} */ protected function taxonIsDiscipline($taxon) { // First check the parent implementation. If it is false, use a legacy // method. if (parent::taxonIsDiscipline($taxon)) { return true; } else { return $this->getTermType($taxon['id']) === 'discipline'; } }