CurrentPathStack::$paths
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Path/CurrentPathStack.php \Drupal\Core\Path\CurrentPathStack::paths
- 10 core/lib/Drupal/Core/Path/CurrentPathStack.php \Drupal\Core\Path\CurrentPathStack::paths
- 9 core/lib/Drupal/Core/Path/CurrentPathStack.php \Drupal\Core\Path\CurrentPathStack::paths
- 8.9.x core/lib/Drupal/Core/Path/CurrentPathStack.php \Drupal\Core\Path\CurrentPathStack::paths
Static cache of paths, keyed by request.
Weak, so that a request nothing else references any more is released together with its path. Code that matches many synthetic requests in one process, such as a long-running command resolving URLs, would otherwise keep every one of them.
Type: \WeakMap<\Symfony\Component\HttpFoundation\Request, string>
File
-
core/
lib/ Drupal/ Core/ Path/ CurrentPathStack.php, line 27
Class
- CurrentPathStack
- Represents the current path for the current request.
Namespace
Drupal\Core\PathCode
protected $paths;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.