You are here

function skype_page_attachments in Skype 8

Implements hook_page_attachments().

File

./skype.module, line 46

Code

function skype_page_attachments(array &$attachments) {

  /** @var \Drupal\skype\Manager\SkypeManager $manager */
  $manager = Drupal::service('skype.manager');
  if ($manager
    ->loadSkypeChatCanvas()) {
    $attachments['#attached']['library'][] = 'skype/skype.chat.canvas';
  }
}