You are here

public function Newsletter::isAccessible in Simplenews 3.x

Checks if the newsletter is accessible for the current user.

Return value

TRUE if the newsletter is accessible.

Overrides NewsletterInterface::isAccessible

File

src/Entity/Newsletter.php, line 216

Class

Newsletter
Defines the simplenews newsletter entity.

Namespace

Drupal\simplenews\Entity

Code

public function isAccessible() {
  return $this->access == SIMPLENEWS_ACCESS_DEFAULT;
}