public function Subscriber::setStatus in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setStatus()
- 3.x src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setStatus()
Sets the status of the subscriber.
Parameters
boolean $status: The subscribers status.
Overrides SubscriberInterface::setStatus
File
- src/
Entity/ Subscriber.php, line 81
Class
- Subscriber
- Defines the simplenews subscriber entity.
Namespace
Drupal\simplenews\EntityCode
public function setStatus($status) {
$this
->set('status', $status);
}