/** * Check the restrictions against the information within the event and determine if the callback shall be executed. * * @param AbstractEnvironmentAwareEvent $event The Event for which the callback shall be invoked. * * @return bool */ public function wantToExecute($event) { return empty($this->dataContainerName) || $event->getEnvironment()->getDataDefinition()->getName() == $this->dataContainerName; }