function _current_path

@todo This is a temporary function pending refactoring Drupal to use Symfony's Request object exclusively.

12 calls to _current_path()
arg in drupal/core/includes/bootstrap.inc
Returns a component of the current Drupal path.
current_path in drupal/core/includes/path.inc
Return the current URL path of the page being viewed.
drupal_environment_initialize in drupal/core/includes/bootstrap.inc
Initializes the PHP environment.
FunctionsTest::testLinks in drupal/core/modules/system/lib/Drupal/system/Tests/Theme/FunctionsTest.php
Tests theme_links().
InstallerTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/InstallerTest.php
Sets up a Drupal site for running functional and integration tests.

... See full list

File

drupal/core/includes/bootstrap.inc, line 2716
Functions that need to be loaded on every Drupal request.

Code

function _current_path($path = NULL) {
  static $current_path = '';
  if (isset($path)) {
    $current_path = $path;
  }
  return $current_path;
}