You are here

interface EntityUuidMapperInterface in Commerce Core 8.2

Maps entity UUIDs to entity IDs, and vice-versa.

Hierarchy

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

... See full list

File

src/EntityUuidMapperInterface.php, line 8

Namespace

Drupal\commerce
View 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

Namesort descending Modifiers Type Description Overrides
EntityUuidMapperInterface::mapFromIds public function Maps the given entity IDs to entity UUIDs. 1
EntityUuidMapperInterface::mapToIds public function Maps the given entity UUIDs to entity IDs. 1