public function ShippingMethodBase::setParentEntity in Commerce Shipping 8.2
Sets the parent entity.
Parameters
\Drupal\Core\Entity\EntityInterface $parent_entity: The parent entity.
Return value
$this
Overrides ParentEntityAwareInterface::setParentEntity
File
- src/
Plugin/ Commerce/ ShippingMethod/ ShippingMethodBase.php, line 93
Class
- ShippingMethodBase
- Provides the base class for shipping methods.
Namespace
Drupal\commerce_shipping\Plugin\Commerce\ShippingMethodCode
public function setParentEntity(EntityInterface $parent_entity) {
$this->parentEntity = $parent_entity;
}