public function FormatterInterface::parseBody in RESTful 7.2
Parses the body string into the common format.
Parameters
string $body: The string sent from the consumer.
Return value
array The parsed object following the expected structure.
Throws
\Drupal\restful\Exception\ServerConfigurationException
\Drupal\restful\Exception\BadRequestException
1 method overrides FormatterInterface::parseBody()
- Formatter::parseBody in src/
Plugin/ formatter/ Formatter.php - Parses the body string into the common format.
File
- src/
Plugin/ formatter/ FormatterInterface.php, line 91 - Contains \Drupal\restful\Plugin\formatter\FormatterInterface
Class
Namespace
Drupal\restful\Plugin\formatterCode
public function parseBody($body);