/**
  * @param $operation
  */
 public function enableGlobalOperationEvents($operation)
 {
     if (!isset($this->enabledGlobalOperations[$operation])) {
         $config = $this->definition->get('list/global_operations/' . $operation);
         $this->enabledGlobalOperations[$operation] = true;
         if (isset($config['button_callback'])) {
             $this->addGlobalOperationListener($operation, function ($objEvent) use($config) {
                 ContaoListener::generateOperation($objEvent, $config['button_callback']);
             }, static::PRIORITY_LOW);
         }
         $this->definition->set(sprintf('list/global_operations/%s/button_callback', $operation), array('DcaTools\\Bridge', 'globalOperationCallback' . $operation));
     }
 }