protected function DatabaseQueue::ensureTableExists in Purge 8.3
Check if the table exists and create it if not.
Overrides DatabaseQueue::ensureTableExists
1 call to DatabaseQueue::ensureTableExists()
- DatabaseQueue::__construct in src/
Plugin/ Purge/ Queue/ DatabaseQueue.php - Construct a DatabaseQueue object.
File
- src/
Plugin/ Purge/ Queue/ DatabaseQueue.php, line 282
Class
- DatabaseQueue
- A QueueInterface compliant database backed queue.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
protected function ensureTableExists() {
// Wrap ::ensureTableExists() to prevent expensive duplicate code paths.
if (!$this->tableExists) {
if (parent::ensureTableExists()) {
$this->tableExists = TRUE;
return TRUE;
}
}
return $this->tableExists;
}