You are here

interface ParentEntityAwareInterface in Commerce Shipping 8.2

Defines the interface for shipping methods that depend on the parent entity.

@todo Replace with the generic ParentEntityAwareInterface from Commerce, once there is one.

Hierarchy

Expanded class hierarchy of ParentEntityAwareInterface

All classes that implement ParentEntityAwareInterface

File

src/Plugin/Commerce/ShippingMethod/ParentEntityAwareInterface.php, line 13

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod
View source
interface ParentEntityAwareInterface {

  /**
   * Sets the parent entity.
   *
   * @param \Drupal\Core\Entity\EntityInterface $parent_entity
   *   The parent entity.
   *
   * @return $this
   */
  public function setParentEntity(EntityInterface $parent_entity);

}

Members