public function OrderItemProductCategory::__construct in Commerce Core 8.2
Constructs a new OrderItemProductCategory object.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\commerce\EntityUuidMapperInterface $entity_uuid_mapper: The entity UUID mapper.
Overrides ConditionBase::__construct
File
- modules/
product/ src/ Plugin/ Commerce/ Condition/ OrderItemProductCategory.php, line 45
Class
- OrderItemProductCategory
- Provides the product category condition for order items.
Namespace
Drupal\commerce_product\Plugin\Commerce\ConditionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager, EntityUuidMapperInterface $entity_uuid_mapper) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityFieldManager = $entity_field_manager;
$this->entityTypeManager = $entity_type_manager;
$this->entityUuidMapper = $entity_uuid_mapper;
}