InvestigateMutationsEvent¶
New in version 12.3
The PSR-14 event
\TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent
will be dispatched when the
Content Security Policy backend module
searches for potential resolutions to a specific CSP violation report. This way,
third-party integrations that rely on external resources (for example, maps,
file storage, content processing/translation, ...) can provide the necessary
mutations.
Example¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class \TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\ InvestigateMutationsEvent¶
-
Event that is dispatched when reports are handled in the CSP backend module to find potential mutations as a resolution.
- policy ¶
- report ¶
- isPropagationStopped ( ) ¶
-
- returntype
-
bool
- stopPropagation ( ) ¶
- getMutationSuggestions ( ) ¶
-
- returntype
-
array
- Returns:
-
list<MutationSuggestion>
- setMutationSuggestions ( TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions) ¶
-
Overrides all mutation suggestions (use carefully).
- param TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions
-
the mutationSuggestions
- appendMutationSuggestions ( TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions) ¶
-
- param TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions
-
the mutationSuggestions