function RulesComponentListBuilder::__construct

Constructs a new RulesComponentListBuilder object.

Parameters

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

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

\Drupal\rules\Engine\ExpressionManagerInterface $expression_manager: The rules expression plugin manager.

Overrides EntityListBuilder::__construct

File

src/Controller/RulesComponentListBuilder.php, line 36

Class

RulesComponentListBuilder
Defines a class to build a listing of RulesComponentConfig entities.

Namespace

Drupal\rules\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, ExpressionManagerInterface $expression_manager) {
    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->expressionManager = $expression_manager;
}