You are here

protected function UnpublishedNodesRedirectOn403Subscriber::getHandledFormats in Unpublished Nodes Redirect 2.x

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/UnpublishedNodesRedirectOn403Subscriber.php, line 20

Class

UnpublishedNodesRedirectOn403Subscriber
Unpublished Nodes Redirect On 403 Subscriber class.

Namespace

Drupal\unpublished_nodes_redirect\EventSubscriber

Code

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