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

Breadcrumb

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

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

API Navigation

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