function PathAliasListBuilder::__construct

Same name in other branches
  1. 9 core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::__construct()
  2. 8.9.x core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::__construct()
  3. 10 core/modules/path/src/PathAliasListBuilder.php \Drupal\path\PathAliasListBuilder::__construct()

Constructs a new PathAliasListBuilder object.

Parameters

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

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

\Symfony\Component\HttpFoundation\Request $current_request: The current request.

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\path_alias\AliasManagerInterface $alias_manager: The path alias manager.

Overrides EntityListBuilder::__construct

File

core/modules/path/src/PathAliasListBuilder.php, line 68

Class

PathAliasListBuilder
Defines a class to build a listing of path_alias entities.

Namespace

Drupal\path

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, Request $current_request, FormBuilderInterface $form_builder, LanguageManagerInterface $language_manager, AliasManagerInterface $alias_manager) {
    parent::__construct($entity_type, $storage);
    $this->currentRequest = $current_request;
    $this->formBuilder = $form_builder;
    $this->languageManager = $language_manager;
    $this->aliasManager = $alias_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.