You are here

public function LicenseListBuilder::__construct in Commerce License 8.2

Constructs a new LicenseListBuilder object.

Parameters

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

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

\Drupal\commerce_license\LicenseTypeManager $license_type_manager: The license type manager service.

Overrides EntityListBuilder::__construct

File

src/LicenseListBuilder.php, line 35

Class

LicenseListBuilder
Defines a class to build a listing of License entities.

Namespace

Drupal\commerce_license

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, LicenseTypeManager $license_type_manager) {
  parent::__construct($entity_type, $storage);
  $this->licenseTypes = $license_type_manager
    ->getDefinitions();
}