public function BrightcoveSubscription::delete in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::delete()
- 3.x src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::delete()
Parameters
bool $local_only: If TRUE delete the local Subscription entity only, otherwise delete the subscription from Brightcove as well.
File
- src/
Entity/ BrightcoveSubscription.php, line 528
Class
- BrightcoveSubscription
- Defines the Brightcove Subscription entity.
Namespace
Drupal\brightcove\EntityCode
public function delete($local_only = TRUE) {
$this->connection
->delete('brightcove_subscription')
->condition('id', $this->id)
->execute();
if (!$local_only) {
$this
->deleteFromBrightcove();
}
}