You are here

public function BrightcoveSubscription::isNew in Brightcove Video Connect 8

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

Determines whether an entity is new or not.

Return value

bool If the entity doesn't have an ID then it will be treated as new, so TRUE will be return, otherwise FALSE will be return if it's an already existing entity.

Overrides BrightcoveSubscriptionInterface::isNew

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

File

src/Entity/BrightcoveSubscription.php, line 92

Class

BrightcoveSubscription
Defines the Brightcove Subscription entity.

Namespace

Drupal\brightcove\Entity

Code

public function isNew() {
  return empty($this->id);
}