public function ParentEntityAwareInterface::setParentEntity in Commerce Core 8.2
Sets the parent entity.
Parameters
\Drupal\Core\Entity\EntityInterface $parent_entity: The parent entity.
Return value
$this
File
- src/
Plugin/ Commerce/ Condition/ ParentEntityAwareInterface.php, line 24
Class
- ParentEntityAwareInterface
- Defines the interface for conditions that depend on the parent entity.
Namespace
Drupal\commerce\Plugin\Commerce\ConditionCode
public function setParentEntity(EntityInterface $parent_entity);