public function SubscriptionInterface::setStatus in Mailing List 8
Sets the subscription status.
Parameters
bool $status: TRUE to set this subscription as active, FALSE to set it as inactive.
Return value
\Drupal\mailing_list\SubscriptionInterface The called subscription entity.
1 method overrides SubscriptionInterface::setStatus()
- Subscription::setStatus in src/
Entity/ Subscription.php - Sets the subscription status.
File
- src/
SubscriptionInterface.php, line 95
Class
- SubscriptionInterface
- Provides an interface defining a subscription entity.
Namespace
Drupal\mailing_listCode
public function setStatus($status);