function PathChangedHelper::oldPath
Same name in other branches
- 10 core/lib/Drupal/Core/Routing/PathChangedHelper.php \Drupal\Core\Routing\PathChangedHelper::oldPath()
Returns the deprecated path.
Return value
string The internal path of the old URL.
File
-
core/
lib/ Drupal/ Core/ Routing/ PathChangedHelper.php, line 86
Class
- PathChangedHelper
- Provides helper functions for handling path changes.
Namespace
Drupal\Core\RoutingCode
public function oldPath() : string {
return $this->oldUrl
->getInternalPath();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.