DisallowRobotsIndexingListener
in package
implements
EventSubscriberInterface
Ensures that the application is not indexed by search engines.
Tags
Interfaces, Classes, Traits and Enums
- EventSubscriberInterface
- An EventSubscriber knows itself what events it is interested in.
Table of Contents
- HEADER_NAME = 'X-Robots-Tag'
- getSubscribedEvents() : array<string|int, mixed>
- 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|int, mixed>
Return values
array<string|int, mixed> —The event names to listen to
onResponse()
public
onResponse(ResponseEvent $event) : void
Parameters
- $event : ResponseEvent