function DispatchForm::__construct
Constructor.
Parameters
\Symfony\Contracts\EventDispatcher\EventDispatcherInterface $dispatcher: The event_dispatcher service.
File
-
tests/
modules/ rules_test_event/ src/ Form/ DispatchForm.php, line 31
Class
- DispatchForm
- Acquires input, wraps it in a Task object, and queues it for processing.
Namespace
Drupal\rules_test_event\FormCode
public function __construct(EventDispatcherInterface $dispatcher) {
$this->dispatcher = $dispatcher;
}