You are here

function hook_bbb_node_create_alter in BigBlueButton 8

Alter of meeting creation.

Parameters

\BigBlueButton\Parameters\CreateMeetingParameters $parameters: Meetings parameters.

\Drupal\node\NodeInterface $node: Related meeting node.

1 invocation of hook_bbb_node_create_alter()
bbb_node_node_insert in modules/bbb_node/bbb_node.module
Implements hook_ENTITY_TYPE_insert().

File

modules/bbb_node/bbb_node.api.php, line 16
Contains API documentation for bbb_node.

Code

function hook_bbb_node_create_alter(\BigBlueButton\Parameters\CreateMeetingParameters $parameters, \Drupal\node\NodeInterface $node) {
  if ($node
    ->getType() === 'target_meeting_type') {
    $parameters
      ->setMaxParticipants(10);
    $parameters
      ->setDuration(60);
  }
}