You are here

public static function BrightcoveSubscription::load in Brightcove Video Connect 8

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

Loads the entity by it's internal Drupal ID.

Parameters

int $id: The internal Drupal ID of the entity.

Return value

\Drupal\brightcove\Entity\BrightcoveSubscription|null Loaded BrightcoveSubscription entity, or NULL if not found.

Throws

\Drupal\brightcove\Entity\Exception\BrightcoveSubscriptionException

5 calls to BrightcoveSubscription::load()
BrightcoveSubscriptionController::createSubscription in src/Controller/BrightcoveSubscriptionController.php
Create a subscription on Brightcove from an already existing entity.
BrightcoveSubscriptionController::disable in src/Controller/BrightcoveSubscriptionController.php
Disabled and removed the default Subscription from Brightcove.
BrightcoveSubscriptionController::enable in src/Controller/BrightcoveSubscriptionController.php
Enables and creates the default Subscription from Brightcove.
BrightcoveSubscriptionDeleteForm::__construct in src/Form/BrightcoveSubscriptionDeleteForm.php
BrightcoveSubscriptionDeleteForm constructor.
brightcove_update_8106 in ./brightcove.install
Create default subscription for each available client.

File

src/Entity/BrightcoveSubscription.php, line 274

Class

BrightcoveSubscription
Defines the Brightcove Subscription entity.

Namespace

Drupal\brightcove\Entity

Code

public static function load($id) {
  return self::loadByField('id', $id);
}