/**
  * @param SectionModel $section
  * @param $allowedEntryTypeIds
  * @return array
  */
 private function getSectionDefinition(SectionModel $section, $allowedEntryTypeIds)
 {
     return array('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));
 }