You are here

function bbb_node_node_update in BigBlueButton 8

Implements hook_ENTITY_TYPE_update().

File

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

Code

function bbb_node_node_update(EntityInterface $node) {

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

  /** @var \Drupal\node\NodeInterface $node */
  if ($meeting
    ->isTypeOf($node)) {
    $meeting
      ->update($node, $node->bbb['info'] ?: new CreateMeetingParameters($node
      ->uuid(), $node
      ->getTitle()));
  }
}