You are here

public function OrderConditionBase::__construct in Ubercart 8.4

Constructs an OrderConditionBase 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\Core\Database\Connection $database: The database service.

Overrides ConditionPluginBase::__construct

File

uc_order/src/Plugin/Condition/OrderConditionBase.php, line 34

Class

OrderConditionBase
Base class containing useful functions for some Order conditions.

Namespace

Drupal\uc_order\Plugin\Condition

Code

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