You are here

public function DeliveryCountryCondition::__construct in Ubercart 8.4

Constructs a DeliveryCountryCondition 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\uc_country\CountryManagerInterface $countryManager: The core country_manager service.

Overrides ConditionPluginBase::__construct

File

uc_order/src/Plugin/Condition/DeliveryCountryCondition.php, line 60

Class

DeliveryCountryCondition
Provides an 'Order delivery country' condition.

Namespace

Drupal\uc_order\Plugin\Condition

Code

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