You are here

function devel_page_attachments_alter in Devel 8.2

Same name and namespace in other branches
  1. 8.3 devel.module \devel_page_attachments_alter()
  2. 8 devel.module \devel_page_attachments_alter()
  3. 4.x devel.module \devel_page_attachments_alter()

Implements hook_page_attachments_alter().

File

./devel.module, line 281
This module holds functions useful for Drupal development.

Code

function devel_page_attachments_alter(&$page) {
  if (\Drupal::currentUser()
    ->hasPermission('access devel information') && \Drupal::config('devel.settings')
    ->get('page_alter')) {
    dpm($page, 'page');
  }
}