You are here

public function Subscriber::setStatus in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Subscriber.php \Drupal\simplenews\Entity\Subscriber::setStatus()
  2. 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\Entity

Code

public function setStatus($status) {
  $this
    ->set('status', $status);
}