You are here

public function QueueService::getLabel in Purge 8.3

Retrieve the label of the queue backend.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The translated label.

Overrides QueueServiceInterface::getLabel

File

src/Plugin/Purge/Queue/QueueService.php, line 365

Class

QueueService
Provides the service that lets invalidations interact with a queue backend.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function getLabel() {
  return $this
    ->getPlugins()[current($this
    ->getPluginsEnabled())]['label'];
}