You are here

public function PushNotification::setPushed in Push Notifications 8

Sets the pushed status of a push_notification.

@todo: add documentation

Overrides PushNotificationInterface::setPushed

File

src/Entity/PushNotification.php, line 113
Contains Drupal\push_notifications\Entity\PushNotification.

Class

PushNotification
Defines the push_notification entity.

Namespace

Drupal\push_notifications\Entity

Code

public function setPushed($pushed) {
  $this
    ->set('status', $pushed ? NODE_PUBLISHED : NODE_NOT_PUBLISHED);
  return $this;
}