You are here

public static function BrightcoveUtil::getDefaultSubscriptionUrl in Brightcove Video Connect 8

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

Returns the absolute URL path for the notification callback.

Return value

string The absolute URL path for the notification callback.

3 calls to BrightcoveUtil::getDefaultSubscriptionUrl()
BrightcoveSubscription::save in src/Entity/BrightcoveSubscription.php
BrightcoveSubscription::saveToBrightcove in src/Entity/BrightcoveSubscription.php
Saves the subscription entity to Brightcove.
BrightcoveSubscriptionController::createDefaults in src/Controller/BrightcoveSubscriptionController.php
Creates default subscriptions.

File

src/BrightcoveUtil.php, line 476

Class

BrightcoveUtil
Utility class for Brightcove.

Namespace

Drupal\brightcove

Code

public static function getDefaultSubscriptionUrl() {
  return Url::fromRoute('brightcove_notification_callback', [], [
    'absolute' => TRUE,
  ])
    ->toString();
}