You are here

public function ShippingMethodCondition::__construct in Ubercart 8.4

Constructs a ShippingMethodCondition 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\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

Overrides ConditionPluginBase::__construct

File

shipping/uc_quote/src/Plugin/Condition/ShippingMethodCondition.php, line 57

Class

ShippingMethodCondition
Provides an 'Order shipping method' condition.

Namespace

Drupal\uc_quote\Plugin\Condition

Code

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