You are here

function janrain_capture_page_attachments in Janrain Registration 8

Implements hook_page_attachments().

@internal

File

./janrain_capture.module, line 30
Janrain Capture.

Code

function janrain_capture_page_attachments(array &$attachments) : void {
  if (!isset($attachments['#attached'])) {
    $attachments['#attached'] = [];
  }
  $attachments['#attached'] = array_merge_recursive($attachments['#attached'], \Drupal::service('janrain_capture.markup_builder')
    ->getPageAttachment());
}