diff --git a/core/lib/Drupal/Core/Utility/LinkGenerator.php b/core/lib/Drupal/Core/Utility/LinkGenerator.php index 2b47455..3f63620 100644 --- a/core/lib/Drupal/Core/Utility/LinkGenerator.php +++ b/core/lib/Drupal/Core/Utility/LinkGenerator.php @@ -85,14 +85,7 @@ public function setRequest(Request $request) { } /** - * Returns information for the currently active route. - * - * @return array - * An array of active route information, containing the following keys: - * - route_name: The currently active route_name - * - language: The current language - * - parameters: An array of request parameters and any query string - * parameters. + * {@inheritdoc} */ public function getActive() { return $this->active; diff --git a/core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php b/core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php index 313c4ab..8bc7eb6 100644 --- a/core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php +++ b/core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php @@ -72,18 +72,15 @@ public function generate($text, $route_name, array $parameters = array(), array $options = array()); /** - * Determines whether a given route is the current active route. + * Returns information for the currently active route. * - * @param string $route_name - * The route name to check whether it is the current active one. - * @param array $route_parameters - * The route parameters belonging to $route_name to check. - * @param array $variables - * A link variables array containing the link options. - * - * @return bool - * Returns TRUE if the route matches the current route, otherwise FALSE. + * @return array + * An array of active route information, containing the following keys: + * - route_name: The currently active route_name + * - language: The current language + * - parameters: An array of request parameters and any query string + * parameters. */ - public function isRouteActive($route_name, array $route_parameters, array $variables); + public function getActive(); }