DisallowRobotsIndexingListener
in package
implements
EventSubscriberInterface
Ensures that the application is not indexed by search engines.
Tags
Interfaces, Classes and Traits
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Table of Contents
- HEADER_NAME = 'X-Robots-Tag'
-
getSubscribedEvents()
: array<string, string|array{0: string, 1: int}|list
> - Returns an array of event names this subscriber wants to listen to.
- onResponse() : void
Constants
HEADER_NAME
private
mixed
HEADER_NAME
= 'X-Robots-Tag'
Methods
getSubscribedEvents()
Returns an array of event names this subscriber wants to listen to.
public
static getSubscribedEvents() : array<string, string|array{0: string, 1: int}|list>
Return values
array<string, string|array{0: string, 1: int}|listonResponse()
public
onResponse(ResponseEvent $event) : void
Parameters
- $event : ResponseEvent