function QueueExampleForm::doesQueueUseDb

Same name in other branches
  1. 8.x-1.x queue_example/src/Forms/QueueExampleForm.php \Drupal\queue_example\Forms\QueueExampleForm::doesQueueUseDb()
  2. 4.0.x modules/queue_example/src/Form/QueueExampleForm.php \Drupal\queue_example\Form\QueueExampleForm::doesQueueUseDb()

Check if we are using the default database queue.

Return value

bool TRUE if we are using the default database queue implementation.

2 calls to QueueExampleForm::doesQueueUseDb()
QueueExampleForm::buildForm in modules/queue_example/src/Form/QueueExampleForm.php
Form constructor.
QueueExampleForm::retrieveQueue in modules/queue_example/src/Form/QueueExampleForm.php
Retrieves the queue from the database for display purposes only.

File

modules/queue_example/src/Form/QueueExampleForm.php, line 260

Class

QueueExampleForm
Form with examples on how to use queue.

Namespace

Drupal\queue_example\Form

Code

protected function doesQueueUseDb() {
    return $this->queueType == 'queue.database';
}