public function CurrentPathStack::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Path/CurrentPathStack.php \Drupal\Core\Path\CurrentPathStack::__construct()
Constructs a new CurrentPathStack instance.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- core/
lib/ Drupal/ Core/ Path/ CurrentPathStack.php, line 40 - Contains \Drupal\Core\Path\CurrentPathStack.
Class
- CurrentPathStack
- Represents the current path for the current request.
Namespace
Drupal\Core\PathCode
public function __construct(RequestStack $request_stack) {
$this->requestStack = $request_stack;
$this->paths = new \SplObjectStorage();
}