/**
  * {@inheritdoc}
  */
 public function registerSubscribers(DataGridInterface $dataGrid)
 {
     $subscribers = $this->loadSubscribers();
     if (!is_array($subscribers)) {
         throw new UnexpectedTypeException('Listeners needs to be stored in array.');
     }
     foreach ($subscribers as $subscriber) {
         if (!$subscriber instanceof EventSubscriberInterface) {
             throw new UnexpectedTypeException(sprintf('"%s" is not instance of Symfony\\Component\\EventDispatcher\\EventSubscriberInterface', $columnType));
         }
         $dataGrid->addEventSubscriber($subscriber);
     }
 }