public function getByTaxonomy($taxonomy)
    {
        if (!($taxonomy instanceof Taxonomy)) {
            $taxonomy = $this->taxonomyFactory->create($taxonomy);
        }

        return $this->convertTermsArray(get_terms($taxonomy->getName(), array(
            'hide_empty' => false
        )), $taxonomy);
    }
public function getByTaxonomy($taxonomy)
    {
        if (!($taxonomy instanceof Taxonomy)) {
            $taxonomy = $this->taxonomyFactory->create($taxonomy);
        }

        return $this->convertTermsArray(get_terms($taxonomy->getName(), array(
            'hide_empty' => false
        )), $taxonomy);
    }
public function getByTaxonomy ( $ taxonomy ) { if ( ! ( $ taxonomy instanceof Taxonomy ) ) { $ taxonomy = $ this -> taxonomyFactory -> create ( $ taxonomy ) ; } return $ this -> convertTermsArray ( get_terms ( $ taxonomy -> getName ( ) , array ( 'hide_empty' => false ) ) , $ taxonomy ) ; }
Get all terms in the given taxonomy.

@param  string|\Tev\Taxonomy\Model\Taxonomy $taxonomy Taxonomy object or name
@return \Tev\Term\Model\Term[]
Get all terms in the given taxonomy .