public static function BrightcoveSubscription::loadByEndpoint in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::loadByEndpoint()
- 3.x src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::loadByEndpoint()
Load a Subscription by its endpoint.
Parameters
string $endpoint: The endpoint.
Return value
\Drupal\brightcove\Entity\BrightcoveSubscription|null The Subscription with the given endpoint or NULL if not found.
Throws
\Drupal\brightcove\Entity\Exception\BrightcoveSubscriptionException
3 calls to BrightcoveSubscription::loadByEndpoint()
- BrightcoveSubscription::createOrUpdate in src/
Entity/ BrightcoveSubscription.php - Create or update a Subscription entity.
- BrightcoveSubscriptionController::createDefaults in src/
Controller/ BrightcoveSubscriptionController.php - Creates default subscriptions.
- BrightcoveSubscriptionForm::validateForm in src/
Form/ BrightcoveSubscriptionForm.php - Form validation handler.
File
- src/
Entity/ BrightcoveSubscription.php, line 369
Class
- BrightcoveSubscription
- Defines the Brightcove Subscription entity.
Namespace
Drupal\brightcove\EntityCode
public static function loadByEndpoint($endpoint) {
return self::loadByField('endpoint', $endpoint);
}