NerdsAndCompany\Schematic\Services\CategoryGroups::getCategoryGroupDefinition PHP Méthode

getCategoryGroupDefinition() private méthode

Get category groups definition.
private getCategoryGroupDefinition ( Craft\CategoryGroupModel $categoryGroup ) : array
$categoryGroup Craft\CategoryGroupModel
Résultat 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)];
    }