core/lib/Drupal/Core/Url.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index 7ad51b2..823921b 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -172,7 +172,7 @@ public static function fromRoute($route_name, $route_parameters = array(), $opti } /** - * Creates a new Url object for a user entered path. + * Creates a new Url object for a user-entered path. * * This method should be used for generating URLs where the exact route is * unknown. This should almost never be necessary, except when dealing with @@ -182,7 +182,7 @@ public static function fromRoute($route_name, $route_parameters = array(), $opti * in favor of Url::fromRoute() for Drupal routes, and Url::fromUri() for * external paths, or paths not controlled by Drupal (e.g. text files). * - * Note: You can call access() on this object to do access checking. + * Note: You can call access() on the returned object to do access checking. * * @param string $path * The path to be converted. The path may include query arguments and a @@ -191,7 +191,7 @@ public static function fromRoute($route_name, $route_parameters = array(), $opti * (optional) Additional options used for the url. * * @return \Drupal\Core\Url - * A url object. + * A Url object. * * @see static::fromUri() * @see static::fromRoute() @@ -203,7 +203,7 @@ public static function fromUserEnteredPath($path, array $options = []) { else { $url = \Drupal::pathValidator() ->getUrlIfValidWithoutAccessCheck($path) ?: Url::fromUri('base://' . $path); - // Allow to specify additional or override ones from the path. + // Allow to specify additional or override options from the path. $url->setOptions($options + $url->getOptions()); } return $url;