public function addFilterOptions(GetFilterOptionsEvent $event, $name, EventDispatcher $eventDispatcher)
 {
     if ($event->hasOption('tag')) {
         return;
     }
     $event->setOption('tag', $GLOBALS['TL_LANG']['tl_module']['filterPropertyTags']);
 }
 public function getFilterFields(\DataContainer $dataContainer)
 {
     \Controller::loadDataContainer('tl_calendar_events');
     \Controller::loadLanguageFile('tl_calendar_events');
     global $container, $TL_LANG;
     $options = array('pid' => $TL_LANG['tl_module']['filterPropertyCalendar'], 'author' => $TL_LANG['tl_module']['filterPropertyAuthor'], 'startDate' => $TL_LANG['tl_module']['filterPropertyMonth']);
     /** @var EventDispatcher $eventDispatcher */
     $eventDispatcher = $container['event-dispatcher'];
     $event = new GetFilterOptionsEvent();
     $event->setOptions($options);
     $eventDispatcher->dispatch(GetFilterOptionsEvent::NAME, $event);
     return $event->getOptions();
 }