Log in
Model

SubresourceIntegrityCollector

Magento\Csp\Model\SubresourceIntegrityCollector

What it does

This class collects and stores SubresourceIntegrity objects that are used for CSP (Content Security Policy) security features.

Developers would use this collector to gather integrity hashes for subresources (like scripts and stylesheets) throughout a request, then retrieve them all at once when needed to apply SRI (Subresource Integrity) attributes to HTML tags.

Public Methods

  • collect()
  • release()