Last active
August 11, 2022 16:39
-
-
Save ozin7/01143af291ea8d3d4f23ac83ddd7d324 to your computer and use it in GitHub Desktop.
Drupal 8/9: Set active class for the custom link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\Core\Link; | |
$link = Link::createFromRoute(t('My shopping lists'), 'commerce_wishlist.page', [], ['set_active_class' => TRUE]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment