You are here

public function BrightcoveSubscriptionDeleteForm::__construct in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 src/Form/BrightcoveSubscriptionDeleteForm.php \Drupal\brightcove\Form\BrightcoveSubscriptionDeleteForm::__construct()
  2. 3.x src/Form/BrightcoveSubscriptionDeleteForm.php \Drupal\brightcove\Form\BrightcoveSubscriptionDeleteForm::__construct()

BrightcoveSubscriptionDeleteForm constructor.

File

src/Form/BrightcoveSubscriptionDeleteForm.php, line 27

Class

BrightcoveSubscriptionDeleteForm
Builds the form for Brightcove Subscription delete.

Namespace

Drupal\brightcove\Form

Code

public function __construct() {
  $request = $this
    ->getRequest();
  $this->brightcoveSubscription = BrightcoveSubscription::load($request
    ->get('id'));
  if (empty($this->brightcoveSubscription)) {
    throw new NotFoundHttpException();
  }
}