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