File
- drupal/core/lib/Drupal/Core/EventSubscriber/PathListenerBase.php, line 17
- Definition of Drupal\Core\EventSubscriber\PathListenerBase.
Class
- PathListenerBase
- Base class for listeners that are manipulating the path.
Namespace
Drupal\Core\EventSubscriber
Code
public function extractPath(Request $request) {
$path = $request->attributes
->get('system_path');
return isset($path) ? $path : trim($request
->getPathInfo(), '/');
}