You are here

public function Theme::meetingStatus in BigBlueButton 8

Theme meeting status.

Parameters

$meeting:

Return value

array

File

src/Service/Theme.php, line 79

Class

Theme
Class Theme.

Namespace

Drupal\bbb\Service

Code

public function meetingStatus($meeting) {
  $meeting = $meeting['meeting'];
  $running = isset($meeting->running) && $meeting->running;
  return [
    '#type' => 'container',
    '#attributes' => [
      'class' => [
        $running ? 'bbb-status-is-running' : 'bbb-status-is-not-running',
      ],
    ],
    'message' => $this
      ->t('Status: Meeting is @status.', [
      '@status' => $running ? $this
        ->t('in progress') : $this
        ->t('not running'),
    ]),
  ];
}