You are here

protected function WebformExceptionHtmlSubscriber::getHandledFormats in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/EventSubscriber/WebformExceptionHtmlSubscriber.php \Drupal\webform\EventSubscriber\WebformExceptionHtmlSubscriber::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 DefaultExceptionHtmlSubscriber::getHandledFormats

See also

\Symfony\Component\HttpFoundation\Request

File

src/EventSubscriber/WebformExceptionHtmlSubscriber.php, line 256

Class

WebformExceptionHtmlSubscriber
Event subscriber to redirect to login form when webform settings instruct to.

Namespace

Drupal\webform\EventSubscriber

Code

protected function getHandledFormats() {
  return [
    'html',
  ];
}