You are here

public function OpignoNotification::setHasRead in Opigno notifications 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoNotification.php \Drupal\opigno_notification\Entity\OpignoNotification::setHasRead()

Sets the notification status.

Parameters

bool $value: The notification status.

Return value

\Drupal\opigno_notification\OpignoNotificationInterface The called notification entity.

Overrides OpignoNotificationInterface::setHasRead

File

src/Entity/OpignoNotification.php, line 209

Class

OpignoNotification
Defines the opigno_notification entity.

Namespace

Drupal\opigno_notification\Entity

Code

public function setHasRead($value) {
  $this
    ->set('has_read', $value);
  return $this;
}