CurrentPathStack::__construct

public CurrentPathStack::__construct(RequestStack $request_stack)

Constructs a new CurrentPathStack instance.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

core/lib/Drupal/Core/Path/CurrentPathStack.php, line 35

Class

CurrentPathStack
Represents the current path for the current request.

Namespace

Drupal\Core\Path

Code

1
2
3
4
public function __construct(RequestStack $request_stack) {
  $this->requestStack = $request_stack;
  $this->paths = new \SplObjectStorage();
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.