function webform_toolbar_alter in Webform 6.x
Same name and namespace in other branches
- 8.5 webform.module \webform_toolbar_alter()
Implements hook_toolbar_alter().
File
- ./
webform.module, line 494 - Enables the creation of webforms and questionnaires.
Code
function webform_toolbar_alter(&$items) {
if (\Drupal::config('webform.settings')
->get('ui.toolbar_item')) {
$items['administration']['#attached']['library'][] = 'webform/webform.admin.toolbar';
}
}