You are here

public function ParentEntityAwareInterface::setParentEntity in Commerce Shipping 8.2

Sets the parent entity.

Parameters

\Drupal\Core\Entity\EntityInterface $parent_entity: The parent entity.

Return value

$this

1 method overrides ParentEntityAwareInterface::setParentEntity()
ShippingMethodBase::setParentEntity in src/Plugin/Commerce/ShippingMethod/ShippingMethodBase.php
Sets the parent entity.

File

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

Class

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

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod

Code

public function setParentEntity(EntityInterface $parent_entity);