You are here

public function Database::__construct in Advanced Queue 8

Constructs a new Database object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Component\Datetime\TimeInterface $time: The time.

\Drupal\Core\Database\Connection $connection: The database connection to use.

Overrides BackendBase::__construct

File

src/Plugin/AdvancedQueue/Backend/Database.php, line 41

Class

Database
Provides the database queue backend.

Namespace

Drupal\advancedqueue\Plugin\AdvancedQueue\Backend

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TimeInterface $time, Connection $connection) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $time);
  $this->connection = $connection;
}