You are here

function bbb_node_node_delete in BigBlueButton 8

Implements hook_ENTITY_TYPE_delete().

File

modules/bbb_node/bbb_node.module, line 330
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

function bbb_node_node_delete(EntityInterface $entity) {

  /** @var \Drupal\bbb_node\Service\NodeMeeting $meeting */
  $meeting = \Drupal::service('bbb_node.meeting');

  /** @var \Drupal\node\NodeInterface $entity */
  if ($meeting
    ->isTypeOf($entity)) {
    $meeting
      ->delete($entity);
  }
}