public function BrightcoveSubscriptionDeleteForm::__construct in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Form/BrightcoveSubscriptionDeleteForm.php \Drupal\brightcove\Form\BrightcoveSubscriptionDeleteForm::__construct()
- 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\FormCode
public function __construct() {
$request = $this
->getRequest();
$this->brightcoveSubscription = BrightcoveSubscription::load($request
->get('id'));
if (empty($this->brightcoveSubscription)) {
throw new NotFoundHttpException();
}
}