public function OrderProductHasAttributeOption::__construct in Ubercart 8.4
Constructs a OrderProductHasAttributeOption 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_attribute/
src/ Plugin/ Condition/ OrderProductHasAttributeOption.php, line 52
Class
- OrderProductHasAttributeOption
- Provides 'Order has a product with a particular attribute option' condition.
Namespace
Drupal\uc_attribute\Plugin\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->database = $database;
}