$api->requestBody()
Returns the request body if available
$api->requestBody(?string $key = null, mixed $default = null): mixed|null
Parameters
Name | Type | Default |
---|---|---|
$key | string |null |
null |
$default | mixed |
null |
Return type
mixed
|null
Parent class
Kirby\Cms\Api
inherited from Kirby\Api\Api