protected function createGrid()
 {
     $grid = $this->createPreparedGrid();
     $grid->setModel($this->submoduleFacade->all());
     $grid->addColumnText('code', 'Fyzický submodul aplikace')->setSortable()->setFilterText();
     $grid->addColumnText('name', 'Název')->setSortable()->setFilterText();
     return $grid;
 }
 /**
  * @param int $id
  * @return array
  */
 public function getOptionsBySection($id)
 {
     $context = $this->submoduleFacade->all();
     $this->sectionFilter->filterId($context, $id, ':module_has_submodule.module', ':');
     return $context->order('name')->fetchPairs('code', 'name');
 }