public function SubscriberInterface::isUnsubscribed in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isUnsubscribed()
- 8 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isUnsubscribed()
Check if the subscriber has an inactive subscription to a given newsletter.
Parameters
string $newsletter_id: The ID of a newsletter.
Return value
bool 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 given newsletter.
File
- src/
SubscriberInterface.php, line 142
Class
- SubscriberInterface
- Simplenews subscriber entity interface.
Namespace
Drupal\simplenewsCode
public function isUnsubscribed($newsletter_id);