Attach an asset library to a specific page in drupal 8/9
In order to attach a library to every page on site, you can specify the library in THEMENAME.info.yml file for example custom theme simple.info.yml file. The hook_page_attachments_alter function is used to attach an asset library to a specific page in drupal8/9.
Share
share your add link
https%3A%2F%2Fmycode.blog%2Flakshmi%2Fattach-asset-library-specific-page-drupal89%0A
Share in social
Comments