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;
        }
    }
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;
        }
    }
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 ; } }
Get an array of the available taxonomytypes for a given contenttype.

@param string $contenttypeslug

@return array $taxonomy
Get an array of the available taxonomytypes for a given contenttype .