Currently \Drupal\attachinline\Render\HtmlResponseAttachmentsProcessor must replace the core html_response.attachments_processor service, rather than just decorating it like other services are able to.

This is necessary because

  • The list of supported keys in #attached is hard-coded
  • A static call to \Drupal\Core\Asset\AttachedAssets::createFromRenderArray()

Comments

gapple created an issue. See original summary.

gapple’s picture

Status: Active » Postponed
gapple’s picture

Opened an issue against core for one of the conflicts.