public function SubscriberInterface::isUnsubscribed in Simplenews 8
Same name and namespace in other branches
- 8.2 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isUnsubscribed()
- 3.x src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isUnsubscribed()
Check if the subscriber has an inactive subscription to a certain newsletter.
Parameters
string $newsletter_id: The ID of a newsletter.
Return value
bool Returns TRUE if the subscriber has the inactive subscription, otherwise FALSE.
1 method overrides SubscriberInterface::isUnsubscribed()
- Subscriber::isUnsubscribed in src/
Entity/ Subscriber.php - Check if the subscriber has an inactive subscription to a certain newsletter.
File
- src/
SubscriberInterface.php, line 142
Class
- SubscriberInterface
- Provides an interface defining a contant message entity
Namespace
Drupal\simplenewsCode
public function isUnsubscribed($newsletter_id);