class RebuildIndex in Persistent URL 8
Hierarchy
- class \Drupal\purl\Event\RebuildIndex implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of RebuildIndex
1 string reference to 'RebuildIndex'
1 service uses RebuildIndex
File
- src/
Event/ RebuildIndex.php, line 15
Namespace
Drupal\purl\EventView source
class RebuildIndex implements EventSubscriberInterface {
/**
* @var ModifierIndex
*/
protected $modifierIndex;
public function __construct(ModifierIndex $modifierIndex) {
$this->modifierIndex = $modifierIndex;
}
public static function getSubscribedEvents() {
return array(
// RequestSubscriber comes in at 50. We need to go before it.
KernelEvents::REQUEST => array(
'onRequest',
51,
),
);
}
public function onRequest(GetResponseEvent $event, $eventName, EventDispatcherInterface $dispatcher) {
$this->modifierIndex
->performDueRebuilds();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RebuildIndex:: |
protected | property | ||
RebuildIndex:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
RebuildIndex:: |
public | function | ||
RebuildIndex:: |
public | function |