public function getContentTypeGrouping($contenttypeslug)
    {
        $grouping = false;
        $taxonomy = $this->getContentTypeTaxonomy($contenttypeslug);
        foreach ($taxonomy as $tax) {
            if ($tax['behaves_like'] === 'grouping') {
                $grouping = $tax['slug'];
                break;
            }
        }

        return $grouping;
    }
public function getContentTypeGrouping($contenttypeslug)
    {
        $grouping = false;
        $taxonomy = $this->getContentTypeTaxonomy($contenttypeslug);
        foreach ($taxonomy as $tax) {
            if ($tax['behaves_like'] === 'grouping') {
                $grouping = $tax['slug'];
                break;
            }
        }

        return $grouping;
    }
public function getContentTypeGrouping ( $ contenttypeslug ) { $ grouping = false ; $ taxonomy = $ this -> getContentTypeTaxonomy ( $ contenttypeslug ) ; foreach ( $ taxonomy as $ tax ) { if ( $ tax [ 'behaves_like' ] === 'grouping' ) { $ grouping = $ tax [ 'slug' ] ; break ; } } return $ grouping ; }
Check if a given contenttype has a grouping, and if it does, return it.

@param string $contenttypeslug

@return mixed $grouping
Check if a given contenttype has a grouping and if it does return it .