public function Subscriber::getStatus in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getStatus()
- 3.x src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::getStatus()
Returns if the subscriber is active or not.
Return value
boolean The subscribers status.
Overrides SubscriberInterface::getStatus
File
- src/
Entity/ Subscriber.php, line 74
Class
- Subscriber
- Defines the simplenews subscriber entity.
Namespace
Drupal\simplenews\EntityCode
public function getStatus() {
return $this
->get('status')->value;
}