function devel_page_attachments_alter

Same name in other branches
  1. 4.x devel.module \devel_page_attachments_alter()

Implements hook_page_attachments_alter().

File

./devel.module, line 279

Code

function devel_page_attachments_alter(array &$attachments) : void {
    if (Drupal::currentUser()->hasPermission('access devel information') && Drupal::config('devel.settings')->get('page_alter')) {
        Drupal::service('devel.dumper')->message(input: $attachments, name: 'attachments');
    }
}