You are here

public static function SmartQueue::initSubqueuesFinished in Entityqueue 8

Batch finished callback.

File

modules/entityqueue_smartqueue/src/Plugin/EntityQueueHandler/SmartQueue.php, line 289

Class

SmartQueue
Plugin annotation @EntityQueueHandler( id = "smartqueue", title = @Translation("Smart queue"), description = @Translation("Provides automated subqueues for each entity of a given type."), )

Namespace

Drupal\entityqueue_smartqueue\Plugin\EntityQueueHandler

Code

public static function initSubqueuesFinished($success, $result, $operations) {
  if ($success) {
    $message = new TranslatableMarkup('Subqueues successfully initialized.');
  }
  else {
    $message = new TranslatableMarkup('Subqueues could not the created.');
  }
  \Drupal::messenger()
    ->addMessage($message);
}