Module hook to alter resource hint array

Created on 10 February 2017, almost 8 years ago
Updated 3 August 2024, 5 months ago

D8 counterpart of ✨ Module hook to alter resource hint array Closed: won't fix

Problem/Motivation

A module hook to alter the resource hint URLs for all hint types would allow other modules to consume this module and utilize resource hints in a consistent manner.

An example would be advagg, which offers DNS prefetching for resources and has implemented the code for those hints. Hypothetically, the advagg module could include this module and alter the DNS prefetch URLs to compliment whatever the user may with to add.

Proposed resolution

Expose a module hook to alter the resource hints array.

Remaining tasks

1. Implement tests
2. Implement module hook
3. Update documentation with module hook information

User interface changes

N/A

API changes

Yes, new API.

Data model changes

N/A

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bighappyface

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024