function bbb_node_node_insert in BigBlueButton 8
Implements hook_ENTITY_TYPE_insert().
See also
File
- modules/
bbb_node/ bbb_node.module, line 223 - Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.
Code
function bbb_node_node_insert(EntityInterface $node) {
/** @var \Drupal\bbb_node\Service\NodeMeeting $node_meeting */
$node_meeting = \Drupal::service('bbb_node.meeting');
/** @var \Drupal\node\NodeInterface $node */
if ($node_meeting
->isTypeOf($node)) {
$params = new CreateMeetingParameters($node
->uuid(), $node
->getTitle());
\Drupal::moduleHandler()
->alter('bbb_node_create', $params, $node);
$meeting = $node_meeting
->create($node, $params);
$node_meeting
->store($node, $params);
}
}