You are here

protected function HandlerFor403AccessDenied::getHandledFormats in moderated content bulk publish 1.0.x

Same name and namespace in other branches
  1. 8 src/EventSubscriber/HandlerFor403AccessDenied.php \Drupal\moderated_content_bulk_publish\EventSubscriber\HandlerFor403AccessDenied::getHandledFormats()
  2. 2.0.x src/EventSubscriber/HandlerFor403AccessDenied.php \Drupal\moderated_content_bulk_publish\EventSubscriber\HandlerFor403AccessDenied::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

src/EventSubscriber/HandlerFor403AccessDenied.php, line 19

Class

HandlerFor403AccessDenied

Namespace

Drupal\moderated_content_bulk_publish\EventSubscriber

Code

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