public function BackendBase::__construct in Advanced Queue 8
Constructs a new BackendBase 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.
Overrides PluginBase::__construct
1 call to BackendBase::__construct()
- Database::__construct in src/
Plugin/ AdvancedQueue/ Backend/ Database.php - Constructs a new Database object.
1 method overrides BackendBase::__construct()
- Database::__construct in src/
Plugin/ AdvancedQueue/ Backend/ Database.php - Constructs a new Database object.
File
- src/
Plugin/ AdvancedQueue/ Backend/ BackendBase.php, line 43
Class
- BackendBase
- Provides the base class for queue backends.
Namespace
Drupal\advancedqueue\Plugin\AdvancedQueue\BackendCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TimeInterface $time) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->time = $time;
if (array_key_exists('_entity_id', $configuration)) {
$this->queueId = $configuration['_entity_id'];
unset($configuration['_entity_id']);
}
$this
->setConfiguration($configuration);
}