public function SubscriptionInterface::setPurchasedEntity in Commerce Recurring Framework 8
Sets the purchased entity.
Parameters
\Drupal\commerce\PurchasableEntityInterface $purchased_entity: The purchased entity.
Return value
$this
1 method overrides SubscriptionInterface::setPurchasedEntity()
- Subscription::setPurchasedEntity in src/
Entity/ Subscription.php - Sets the purchased entity.
File
- src/
Entity/ SubscriptionInterface.php, line 156
Class
- SubscriptionInterface
- Defines the interface for subscriptions.
Namespace
Drupal\commerce_recurring\EntityCode
public function setPurchasedEntity(PurchasableEntityInterface $purchased_entity);