I have a custom block with its own twig template file.
I want to add an html head link tag when this block is loaded.
<link rel="import" href="test.html">
In the twig template I can use
attach_library to add css/js to , but I don't know how to add html imports in twig.
Is it possible to achieve this using
mytheme_preprocess_block function, or any other hook?
I can add the html head link tag in
mytheme_page_attachments_alter but I don't know how to limit this to only when my custom block is loaded.