Skip to main content

New answers tagged

0 votes

Module theme hook template works only after hard refresh

The project is running on Lando Docker local setup. I ended up running lando rebuild and that seemed to resolved the problem. It could have been file permission as @4uk4 suggested.
bdereta's user avatar
  • 141
0 votes

menu tree behaves differently on two differents sections

Found the issue in hook_preprocess_node : i replaced $parameters = $menu_tree->getCurrentRouteMenuTreeParameters($menu_name); with a clean object : $parameters = new \Drupal\Core\Menu\...
SupFrig's user avatar
  • 109
0 votes

Add Javascript to a specific 'Basic page' or node based on its title

The complete solution here: My theme is called themex. Inside the file themex.libraries.yml define an asset library containing the Javascript code that you want to include in your specific page. In ...
quilx's user avatar
  • 21

Top 50 recent answers are included