public function ParentEntityAwareTrait::setParentEntity in Commerce Core 8.2
File
- src/
Plugin/ Commerce/ Condition/ ParentEntityAwareTrait.php, line 22
Class
- ParentEntityAwareTrait
- Provides a trait for implementing ParentEntityAwareInterface.
Namespace
Drupal\commerce\Plugin\Commerce\ConditionCode
public function setParentEntity(EntityInterface $parent_entity) {
$this->parentEntity = $parent_entity;
return $this;
}