Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PathChangedHelper.php

function 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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal