NerdsAndCompany\Schematic\Services\Sections::populateSection PHP Метод

populateSection() приватный Метод

Populate section.
private populateSection ( Craft\SectionModel $section, array $sectionDefinition, string $sectionHandle )
$section Craft\SectionModel
$sectionDefinition array
$sectionHandle string
    private function populateSection(SectionModel $section, array $sectionDefinition, $sectionHandle)
    {
        $section->setAttributes(['handle' => $sectionHandle, 'name' => $sectionDefinition['name'], 'type' => $sectionDefinition['type'], 'hasUrls' => $sectionDefinition['hasUrls'], 'template' => $sectionDefinition['template'], 'maxLevels' => $sectionDefinition['maxLevels'], 'enableVersioning' => $sectionDefinition['enableVersioning']]);
        $this->populateSectionLocales($section, $sectionDefinition['locales']);
    }