You are here

public function OrderHasProductClassCondition::__construct in Ubercart 8.4

Constructs a OrderHasProductClassCondition 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\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The core entity_type.bundle.info service.

Overrides ConditionPluginBase::__construct

File

uc_order/src/Plugin/Condition/OrderHasProductClassCondition.php, line 68

Class

OrderHasProductClassCondition
Provides 'Order has a product with a selected product classes' condition.

Namespace

Drupal\uc_order\Plugin\Condition

Code

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