public function Meeting::delete in BigBlueButton 8
Delete meeting.
Parameters
string $id: Meeting ID.
Overrides MeetingInterface::delete
File
- src/
Service/ Meeting.php, line 193
Class
- Meeting
- Class Meeting.
Namespace
Drupal\bbb\ServiceCode
public function delete($key) {
if ($this->meetingCollection
->has($key)) {
$this->meetingCollection
->delete($key);
}
else {
$this->log
->warning($this
->t('Meeting @key not found during removal: It was removed before manually or never exists.', [
'@key' => $key,
]));
}
$meeting = $this
->get($key);
$params = new EndMeetingParameters($meeting->meetingID, $meeting->moderatorPW);
$request = $this->api
->endMeeting($params);
return $request;
}