PathFormBase::__construct

public PathFormBase::__construct(AliasStorageInterface $alias_storage, AliasManagerInterface $alias_manager, PathValidatorInterface $path_validator, RequestContext $request_context)

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 66

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;
}
doc_Drupal
2016-10-29 09:33:26
Comments
Leave a Comment

Please login to continue.