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
- interface \Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod\ParentEntityAwareInterface
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\ShippingMethodView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParentEntityAwareInterface:: |
public | function | Sets the parent entity. | 1 |