You are here

public function PathFormBase::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/path/src/Form/PathFormBase.php \Drupal\path\Form\PathFormBase::__construct()

Constructs a new PathController.

Parameters

\Drupal\Core\Path\AliasStorageInterface $alias_storage: The path alias storage.

\Drupal\Core\Path\AliasManagerInterface $alias_manager: The path alias manager.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.

\Drupal\Core\Routing\RequestContext $request_context: The request context.

File

core/modules/path/src/Form/PathFormBase.php, line 71
Contains \Drupal\path\Form\PathFormBase.

Class

PathFormBase
Provides a base class for path add/edit forms.

Namespace

Drupal\path\Form

Code

public function __construct(AliasStorageInterface $alias_storage, AliasManagerInterface $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context) {
  $this->aliasStorage = $alias_storage;
  $this->aliasManager = $alias_manager;
  $this->pathValidator = $path_validator;
  $this->requestContext = $request_context;
}