You are here

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

Same name and namespace in other branches
  1. 8.2 src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::__construct()
  2. 8 src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::__construct()

Constructs a new RegistrationListBuilder object.

Parameters

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.

Overrides EntityListBuilder::__construct

File

src/Lists/RuleListBuilder.php, line 49

Class

RuleListBuilder
Builds a list of rng rules.

Namespace

Drupal\rng\Lists

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EventManagerInterface $event_manager, RedirectDestinationInterface $redirect_destination) {
  parent::__construct($entity_type, $storage);
  $this->eventManager = $event_manager;
  $this->redirectDestination = $redirect_destination;
}