public function DatabaseQueue::schemaDefinition in Purge 8.3
Defines the schema for the queue table.
@internal
Overrides DatabaseQueue::schemaDefinition
File
- src/
Plugin/ Purge/ Queue/ DatabaseQueue.php, line 296
Class
- DatabaseQueue
- A QueueInterface compliant database backed queue.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function schemaDefinition() {
// Reuse core's schema as was around Drupal 8.1.7. However, we are in no way
// fully depending on core and can - when required - hardcode the full
// schema if core decided to change it significantly.
$schema = parent::schemaDefinition();
unset($schema['fields']['name']);
unset($schema['indexes']['name_created']);
$schema['description'] = "Queue items for the purge database queue plugin.";
$schema['indexes']['created'] = [
'created',
];
return $schema;
}