DefaultExceptionSubscriber::on405

public DefaultExceptionSubscriber::on405(GetResponseForExceptionEvent $event) Handles a 405 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 94 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on405(GetResponseForExce

DefaultExceptionSubscriber::on404

public DefaultExceptionSubscriber::on404(GetResponseForExceptionEvent $event) Handles a 404 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 84 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on404(GetResponseForExce

DefaultExceptionSubscriber::on403

public DefaultExceptionSubscriber::on403(GetResponseForExceptionEvent $event) Handles a 403 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 74 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on403(GetResponseForExce

DefaultExceptionSubscriber::on400

public DefaultExceptionSubscriber::on400(GetResponseForExceptionEvent $event) Handles a 400 error for HTTP. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 64 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code public function on400(GetResponseForExce

DefaultExceptionSubscriber::getSubscribedEvents

public static DefaultExceptionSubscriber::getSubscribedEvents() Registers the methods in this class that should be listeners. Return value array An array of event listener definitions. Overrides EventSubscriberInterface::getSubscribedEvents File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 240 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code public static function getSubscribedEvents() { $eve

DefaultExceptionSubscriber::getPriority

protected static DefaultExceptionSubscriber::getPriority() Specifies the priority of all listeners in this class. The default priority is 1, which is very low. To have listeners that have a "first attempt" at handling exceptions return a higher priority. Return value int The event priority of this subscriber. Overrides HttpExceptionSubscriberBase::getPriority File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 52 Class DefaultExceptionSubscriber Handle

DefaultExceptionSubscriber::getHandledFormats

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.p

DefaultExceptionSubscriber::getFormat

protected DefaultExceptionSubscriber::getFormat(Request $request) Gets the error-relevant format from the request. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. Return value string The format as which to treat the exception. File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 212 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected function getFormat(Re

DefaultExceptionSubscriber::getErrorLevel

protected DefaultExceptionSubscriber::getErrorLevel() Gets the configured error level. Return value string File core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php, line 55 Class DefaultExceptionSubscriber Last-chance handler for exceptions. Namespace Drupal\Core\EventSubscriber Code protected function getErrorLevel() { if (!isset($this->errorLevel)) { $this->errorLevel = $this->configFactory->get('system.logging')->get('error_level'); } return

DefaultExceptionSubscriber::$serializerFormats

The available serialization formats. Type: array File core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php, line 27 Class DefaultExceptionSubscriber Handles default error responses in serialization formats. Namespace Drupal\serialization\EventSubscriber Code protected $serializerFormats = [];