Log in
Model

PluginTypesPolicyMerger

Magento\Csp\Model\Collector\PluginTypesPolicyMerger

What it does

This class merges Content Security Policy (CSP) plugin-types directives from multiple sources.

Developers use this when Magento needs to combine multiple CSP policies that define allowed plugin types (like Flash, Java) into a single unified policy.

It ensures that all plugin type declarations from different modules or configurations are properly consolidated.

Public Methods

  • merge()
  • canMerge()