function paragraphs_frontend_ui_page_attachments in Paragraphs frontend ui 8.2
Implements hook_page_attachments().
Parameters
array $page:
File
- ./
paragraphs_frontend_ui.module, line 16 - Provides common hooks and alterations for paragraphs_frontend_ui module.
Code
function paragraphs_frontend_ui_page_attachments(array &$page) {
$config = \Drupal::config(SettingsForm::SETTINGS_NAME);
if ($config
->get('enable_nested_paragraphs')) {
$page['#attached']['library'][] = 'paragraphs_frontend_ui/ajax_command_clear_contextual_links';
}
}