function PathChangedHelper::newPath

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Routing/PathChangedHelper.php \Drupal\Core\Routing\PathChangedHelper::newPath()

Returns the updated path.

Return value

string The internal path of the new URL.

File

core/lib/Drupal/Core/Routing/PathChangedHelper.php, line 96

Class

PathChangedHelper
Provides helper functions for handling path changes.

Namespace

Drupal\Core\Routing

Code

public function newPath() : string {
    return $this->newUrl
        ->getInternalPath();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.