You are here

public function ModalListBuilder::__construct in Modal 8.3

Same name and namespace in other branches
  1. 8.2 src/Entity/Controller/ModalListBuilder.php \Drupal\modal_page\Entity\Controller\ModalListBuilder::__construct()

Constructs a new ModalListBuilder object.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The entity type definition.

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

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

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

Overrides EntityListBuilder::__construct

File

src/Entity/Controller/ModalListBuilder.php, line 56

Class

ModalListBuilder
Provides a list controller for Modal entity.

Namespace

Drupal\modal_page\Entity\Controller

Code

public function __construct(LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator) {
  $this->languageManager = $language_manager;
  parent::__construct($entity_type, $storage);
  $this->urlGenerator = $url_generator;
}