interface EntityUuidMapperInterface in Commerce Core 8.2
Maps entity UUIDs to entity IDs, and vice-versa.
Hierarchy
- interface \Drupal\commerce\EntityUuidMapperInterface
Expanded class hierarchy of EntityUuidMapperInterface
All classes that implement EntityUuidMapperInterface
15 files declare their use of EntityUuidMapperInterface
- OrderCustomer.php in modules/
order/ src/ Plugin/ Commerce/ Condition/ OrderCustomer.php - OrderCustomerTest.php in modules/
order/ tests/ src/ Unit/ Plugin/ Commerce/ Condition/ OrderCustomerTest.php - OrderItemProduct.php in modules/
product/ src/ Plugin/ Commerce/ Condition/ OrderItemProduct.php - OrderItemProductCategory.php in modules/
product/ src/ Plugin/ Commerce/ Condition/ OrderItemProductCategory.php - OrderItemProductCategoryTest.php in modules/
product/ tests/ src/ Unit/ Plugin/ Commerce/ Condition/ OrderItemProductCategoryTest.php
File
- src/
EntityUuidMapperInterface.php, line 8
Namespace
Drupal\commerceView source
interface EntityUuidMapperInterface {
/**
* Maps the given entity UUIDs to entity IDs.
*
* @param string $entity_type_id
* The entity type ID.
* @param array $uuids
* THe entity UUIDs.
*
* @return array
* The entity IDs.
*/
public function mapToIds($entity_type_id, array $uuids);
/**
* Maps the given entity IDs to entity UUIDs.
*
* @param string $entity_type_id
* The entity type ID.
* @param array $ids
* THe entity IDs.
*
* @return array
* The entity UUIDs.
*/
public function mapFromIds($entity_type_id, array $ids);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityUuidMapperInterface:: |
public | function | Maps the given entity IDs to entity UUIDs. | 1 |
EntityUuidMapperInterface:: |
public | function | Maps the given entity UUIDs to entity IDs. | 1 |