NerdsAndCompany\Schematic\Services\Sections::getSectionDefinition PHP Method

getSectionDefinition() private method

Get section definition.
private getSectionDefinition ( Craft\SectionModel $section, $allowedEntryTypeIds ) : array
$section Craft\SectionModel
$allowedEntryTypeIds
return array
    private function getSectionDefinition(SectionModel $section, $allowedEntryTypeIds)
    {
        return ['name' => $section->name, 'type' => $section->type, 'hasUrls' => $section->hasUrls, 'template' => $section->template, 'maxLevels' => $section->maxLevels, 'enableVersioning' => $section->enableVersioning, 'locales' => $this->getLocaleDefinitions($section->getLocales()), 'entryTypes' => $this->getEntryTypeDefinitions($section->getEntryTypes(), $allowedEntryTypeIds)];
    }