public function BrightcovePlaylist::delete in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::delete()
- 8 src/Entity/BrightcovePlaylist.php \Drupal\brightcove\Entity\BrightcovePlaylist::delete()
Parameters
bool $local_only: Whether to delete the local version only or both local and Brightcove versions.
Overrides EntityBase::delete
File
- src/
Entity/ BrightcovePlaylist.php, line 355
Class
- BrightcovePlaylist
- Defines the Brightcove Playlist.
Namespace
Drupal\brightcove\EntityCode
public function delete($local_only = FALSE) {
// Delete playlist from Brightcove.
if (!$this
->isNew() && !$local_only) {
$cms = BrightcoveUtil::getCmsApi($this
->getApiClient());
$cms
->deletePlaylist($this
->getBrightcoveId());
}
parent::delete();
}