NerdsAndCompany\Schematic\Services\CategoryGroups::getCategoryGroupDefinition PHP Method

getCategoryGroupDefinition() private method

Get category groups definition.
private getCategoryGroupDefinition ( Craft\CategoryGroupModel $categoryGroup ) : array
$categoryGroup Craft\CategoryGroupModel
return array
    private function getCategoryGroupDefinition(CategoryGroupModel $categoryGroup)
    {
        $fieldLayout = Craft::app()->fields->getLayoutById($categoryGroup->fieldLayoutId);
        return ['name' => $categoryGroup->name, 'hasUrls' => $categoryGroup->hasUrls, 'template' => $categoryGroup->template, 'maxLevels' => $categoryGroup->maxLevels, 'locales' => $this->getLocaleDefinitions($categoryGroup->getLocales()), 'fieldLayout' => Craft::app()->schematic_fields->getFieldLayoutDefinition($fieldLayout)];
    }