Answers for "drupal 8 add js"

0

drupal 8 attach js library

$variables['#attached']['library'][] = 'your_module/library_name';
Posted by: Guest on October-01-2020
0

drupal 8 get node

$node = Drupal::routeMatch()->getParameter('node');
Posted by: Guest on March-11-2021

Browse Popular Code Answers by Language