protected DefaultExceptionSubscriber::getHandledFormats()
Specifies the request formats this subscriber will respond to.
Return value
array An indexed array of the format machine names that this subscriber will attempt to process, such as "html" or "json". Returning an empty array will apply to all formats.
Overrides HttpExceptionSubscriberBase::getHandledFormats
See also
\Symfony\Component\HttpFoundation\Request
File
- core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 45
Class
- DefaultExceptionSubscriber
- Handles default error responses in serialization formats.
Namespace
Drupal\serialization\EventSubscriber
Code
protected function getHandledFormats() { return $this->serializerFormats; }
Please login to continue.