You are here

public function BBBMeetingTypeController::status in BigBlueButton 8

Return meeting status; Menu callback

Parameters

$node: EntityInterface node

Return value

JsonResponse with boolean 'running'

1 string reference to 'BBBMeetingTypeController::status'
bbb_node.routing.yml in modules/bbb_node/bbb_node.routing.yml
modules/bbb_node/bbb_node.routing.yml

File

modules/bbb_node/src/Controller/BBBMeetingTypeController.php, line 238

Class

BBBMeetingTypeController
Class BBBMeetingTypeController.

Namespace

Drupal\bbb_node\Controller

Code

public function status($node) {
  if (is_numeric($node)) {

    /** @var \Drupal\node\NodeInterface $node */
    $node = $this->nodeStorage
      ->load($node);
  }
  $meeting = $this->nodeMeeting
    ->get($node);
  return new JsonResponse([
    'running' => $meeting->running,
  ]);
}