‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion Class Reference
Inheritance diagram for TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion:

Public Member Functions

 __construct (public readonly MutationCollection $collection, public readonly string $identifier, public readonly ?int $priority=null, public readonly ?string $label=null,)
 hash ()
 hmac ()
 jsonSerialize ()

Private Member Functions

 getHashProperties ()

Detailed Description

Representation of a mutation suggested by a handler. The identifier is used to keep track of the original handling class/aspect. Higher priorities take precedence when being visualized in the backend module.

Definition at line 28 of file MutationSuggestion.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion::__construct ( public readonly MutationCollection  $collection,
public readonly string  $identifier,
public readonly ?int  $priority = null,
public readonly ?string  $label = null 
string$identifier‪a unique identifier (e.g. Vendor\Extension\MyHandler@knownJavaScript)
?int‪$priority an integer in the range of [0; 10]
?string‪$label to be shown in backend module

Definition at line 35 of file MutationSuggestion.php.

Member Function Documentation

◆ getHashProperties()

◆ hash()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion::hash ( )

◆ hmac()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion::hmac ( )

◆ jsonSerialize()

TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion::jsonSerialize ( )