public function EventTypeRuleDeleteAll::__construct in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::__construct()
- 3.x src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::__construct()
Constructs a EventTypeRuleDeleteAll form.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
File
- src/
Form/ EventTypeRuleDeleteAll.php, line 47
Class
- EventTypeRuleDeleteAll
- Form controller to delete all custom rules for an event type.
Namespace
Drupal\rng\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, EventManagerInterface $event_manager) {
$this->ruleStorage = $entity_type_manager
->getStorage('rng_rule');
$this->eventManager = $event_manager;
}