function PathChangedHelper::oldPath

Same name and namespace in other branches
  1. 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\Routing

Code

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.