public function getContentTypeTaxonomy($contenttypeslug) { $contenttype = $this->getContentType($contenttypeslug); if (empty($contenttype['taxonomy'])) { return []; } else { $taxokeys = $contenttype['taxonomy']; $taxonomy = []; foreach ($taxokeys as $key) { if ($this->app['config']->get('taxonomy/' . $key)) { $taxonomy[$key] = $this->app['config']->get('taxonomy/' . $key); } } return $taxonomy; } }