Fetches a specific URL alias from the database.
$conditions: A string representing the source, a number representing the pid, or an array of query conditions.
\Drupal\Core\Path\Path::load()
function path_load($conditions) {
if (is_numeric($conditions)) {
$conditions = array(
'pid' => $conditions,
);
}
elseif (is_string($conditions)) {
$conditions = array(
'source' => $conditions,
);
}
elseif (!is_array($conditions)) {
return FALSE;
}
return drupal_container()
->get('path.crud')
->load($conditions);
}