PayloadDecoder

final class \TYPO3\CMS\Reactions\Http\PayloadDecoder

Reads the body of a reaction request, for the endpoint and for the dry run of the backend module alike, so both answer the same body the same way.

Table of Contents

Methods

decode()  : array|null
Null for JSON of a scalar.

Methods

decode()

Null for JSON of a scalar.

public static decode(string $body) : array|null

Parameters

$body : string

Tags

throws
InvalidArgumentException

for a body that is no JSON

Return values

array|null
On this page