You are here

public function RulesReactionListBuilder::__construct in Rules 8.3

Constructs a new RulesReactionListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\RulesEventManager $eventManager: The Rules event plugin manager.

Overrides EntityListBuilder::__construct

File

src/Controller/RulesReactionListBuilder.php, line 38

Class

RulesReactionListBuilder
Defines a class to build a listing of ReactionRuleConfig entities.

Namespace

Drupal\rules\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, RulesEventManager $eventManager) {
  parent::__construct($entity_type, $storage);

  // Disable the pager because this list builder uses client-side filters,
  // which requires all entities to be listed.
  $this->limit = FALSE;
  $this->eventManager = $eventManager;
}