You are here

public function EventTypeRuleDeleteAll::__construct in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::__construct()
  2. 8 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\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EventManagerInterface $event_manager) {
  $this->ruleStorage = $entity_type_manager
    ->getStorage('rng_rule');
  $this->eventManager = $event_manager;
}