Log in
Model

Converter

Magento\Csp\Model\Collector\CspWhitelistXml\Converter

What it does

This class converts csp_whitelist.xml configuration files into a structured PHP array format that Magento can use.

Developers use this when defining Content Security Policy (CSP) rules in modules, as it processes XML declarations of whitelisted hosts and hashes into an array organized by policy ID with separate 'hosts' and 'hashes' sections.

Public Methods

  • convert()