protected function DiagnosticsService::getQueue in Purge 8.3
Retrieve the 'purge.queue' service - lazy loaded.
Return value
\Drupal\purge\Plugin\Purge\Queue\QueueServiceInterface The 'purge.queue' service.
File
- src/
Plugin/ Purge/ DiagnosticCheck/ DiagnosticsService.php, line 204
Class
- DiagnosticsService
- Provides a service that interacts with diagnostic checks.
Namespace
Drupal\purge\Plugin\Purge\DiagnosticCheckCode
protected function getQueue() {
if (is_null($this->purgeQueue)) {
$this
->getLogger()
->debug("lazy loading 'purge.queue' service.");
$this->purgeQueue = $this->container
->get('purge.queue');
}
return $this->purgeQueue;
}