/** * @param SectionModel $section * @param array $sectionDefinition * @param string $sectionHandle */ private function populateSection(SectionModel $section, array $sectionDefinition, $sectionHandle) { $section->setAttributes(array('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']); }