You are here

public function PromotionListBuilder::__construct in Commerce Core 8.2

Constructs a new PromotionListBuilder object.

Parameters

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

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Drupal\commerce_promotion\PromotionUsageInterface $usage: The usage.

Overrides EntityListBuilder::__construct

File

modules/promotion/src/PromotionListBuilder.php, line 88

Class

PromotionListBuilder
Defines the list builder for promotions.

Namespace

Drupal\commerce_promotion

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, FormBuilderInterface $form_builder, PromotionUsageInterface $usage) {
  parent::__construct($entity_type, $storage);
  $this->formBuilder = $form_builder;
  $this->usage = $usage;
}