Drupal 8/9 build a link using preprocess functions
To generate URL objects from routes and external URIs, use the \Drupal\Core\Url class.
To create HTML links within a Drupal module, use the \Drupal\Core\Link class.
To create HTML links within a Drupal module, use the \Drupal\Core\Link class.
Share
share your add link
https%3A%2F%2Fmycode.blog%2Flakshmi%2Fdrupal-89-builds-link-using-preprocess-functions%0A
Share in social
Comments