reverted: --- b/core/lib/Drupal/Core/Path/AliasStorage.php +++ a/core/lib/Drupal/Core/Path/AliasStorage.php @@ -82,15 +82,6 @@ * {@inheritdoc} */ public function load($conditions) { - if (is_numeric($conditions)) { - $conditions = array('pid' => $conditions); - } - elseif (is_string($conditions)) { - $conditions = array('source' => $conditions); - } - elseif (!is_array($conditions)) { - return FALSE; - } $select = $this->connection->select('url_alias'); foreach ($conditions as $field => $value) { $select->condition($field, $value); diff -u b/core/modules/path/lib/Drupal/path/Controller/PathController.php b/core/modules/path/lib/Drupal/path/Controller/PathController.php --- b/core/modules/path/lib/Drupal/path/Controller/PathController.php +++ b/core/modules/path/lib/Drupal/path/Controller/PathController.php @@ -24,6 +24,15 @@ * @todo Remove path_admin_edit(). */ public function adminEdit($path) { + if (is_numeric($path)) { + $path = array('pid' => $path); + } + elseif (is_string($path)) { + $path = array('source' => $path); + } + elseif (!is_array($path)) { + return FALSE; + } $path = \Drupal::service('path.alias_storage')->load($path); module_load_include('admin.inc', 'path'); return path_admin_edit($path);