function webform_toolbar_alter in Webform 8.5
Same name and namespace in other branches
- 6.x webform.module \webform_toolbar_alter()
Implements hook_toolbar_alter().
File
- ./
webform.module, line 495 - 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';
}
}