.../EventSubscriber/CurrentPathDestinationLinkResponseFilter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/EventSubscriber/CurrentPathDestinationLinkResponseFilter.php b/core/lib/Drupal/Core/EventSubscriber/CurrentPathDestinationLinkResponseFilter.php index dbffd2a..95d0994 100644 --- a/core/lib/Drupal/Core/EventSubscriber/CurrentPathDestinationLinkResponseFilter.php +++ b/core/lib/Drupal/Core/EventSubscriber/CurrentPathDestinationLinkResponseFilter.php @@ -51,7 +51,7 @@ public function __construct(AccountInterface $current_user, CurrentPathStack $cu } /** - * Sets the 'is-active' class on links. + * Adds "destination" query string pointing to the current path. * * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event * The response event. @@ -62,7 +62,8 @@ public function onResponse(FilterResponseEvent $event) { return; } - // For authenticated users, the 'is-active' class is set in JavaScript. + // For authenticated users, the 'destination' query string is set in + // JavaScript. // @see system_page_attachments() if ($this->currentUser->isAuthenticated()) { return;