You are here

public function DomainPathListBuilder::__construct in Domain Path 8

Constructs a new DomainPathListBuilder object.

Parameters

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

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

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator.

Overrides EntityListBuilder::__construct

File

src/Controller/DomainPathListBuilder.php, line 67

Class

DomainPathListBuilder
Provides a list controller for domain_path entity.

Namespace

Drupal\domain_path\Controller

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator, Request $current_request, FormBuilderInterface $form_builder) {
  parent::__construct($entity_type, $storage);
  $this->urlGenerator = $url_generator;
  $this->currentRequest = $current_request;
  $this->formBuilder = $form_builder;
}