Issue #2927808 by sonvir249: Implement Module functionality using hook_page_attachments | Drupal 8 | Collapsiblock