function ContextualTestHooks::pageAttachmentsAlter

Implements hook_page_attachments_alter().

File

core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php, line 40

Class

ContextualTestHooks
Hook implementations for contextual_test.

Namespace

Drupal\contextual_test\Hook

Code

public function pageAttachmentsAlter(array &$attachments) {
    $attachments['#attached']['library'][] = 'core/drupal.dialog.ajax';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.