You are here

public function Theme::meeting in BigBlueButton 8

Theme inline meeting

Parameters

$meeting:

Return value

array

File

src/Service/Theme.php, line 53

Class

Theme
Class Theme.

Namespace

Drupal\bbb\Service

Code

public function meeting($meeting) {
  $url = Url::fromRoute('bbb.meeting.redirect', [
    'node' => $meeting['meeting'],
    'mode' => $meeting['mode'],
  ], [
    'absolute' => TRUE,
  ])
    ->toString();
  return [
    '#type' => 'html_tag',
    '#tag' => 'iframe',
    '#attributes' => [
      'src' => $url,
      'style' => [
        'height' => $meeting['height'],
        'width' => $meeting['width'],
        'border' => 0,
      ],
    ],
  ];
}