You are here

public function BrightcoveSubscription::isActive in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::isActive()
  2. 8 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::isActive()

The status of the Subscription.

Return value

bool It always returns TRUE except for default, which can be FALSE.

Overrides BrightcoveSubscriptionInterface::isActive

1 call to BrightcoveSubscription::isActive()
BrightcoveSubscription::save in src/Entity/BrightcoveSubscription.php

File

src/Entity/BrightcoveSubscription.php, line 75

Class

BrightcoveSubscription
Defines the Brightcove Subscription entity.

Namespace

Drupal\brightcove\Entity

Code

public function isActive() {
  if ($this->default) {
    return $this->status;
  }
  return TRUE;
}