You are here

public function Subscription::isActive in Mailing List 8

Returns the subscription status.

Return value

bool TRUE if the subscription is active, FALSE otherwise.

Overrides SubscriptionInterface::isActive

1 call to Subscription::isActive()
Subscription::preSave in src/Entity/Subscription.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Subscription.php, line 154

Class

Subscription
Defines the subscription entity class.

Namespace

Drupal\mailing_list\Entity

Code

public function isActive() {
  return (bool) $this
    ->getEntityKey('status');
}