/**
  * Do the frontend integration generation.
  *
  * @return string
  */
 public function generate()
 {
     $this->mapService->handleAjaxRequest($this->getIdentifier());
     if (TL_MODE === 'BE') {
         $model = MapModel::findByPK($this->leaflet_map);
         $template = new \BackendTemplate('be_wildcard');
         if ($model) {
             $href = 'contao/main.php?do=leaflet&table=tl_leaflet_map&act=edit&id=' . $model->id;
             $template->wildcard = '### LEAFLET MAP ' . $model->title . ' ###';
             $template->title = $this->headline;
             $template->id = $model->id;
             $template->link = $model->title;
             $template->href = $href;
         }
         return $template->parse();
     }
     return parent::generate();
 }