bear_paragraph_two_column.module in Bear 8
Same filename and directory in other branches
Customizations related to the Two Column paragraph bundle.
File
modules/custom/bear_paragraph_two_column/bear_paragraph_two_column.moduleView source
<?php
/**
* @file
* Customizations related to the Two Column paragraph bundle.
*/
/**
* Implements hook_page_attachments().
*/
function bear_paragraph_two_column_page_attachments(array &$attachments) {
$is_admin = \Drupal::service('router.admin_context')
->isAdminRoute();
if ($is_admin) {
$attachments['#attached']['library'][] = 'bear_paragraph_two_column/node-form';
}
}
Functions
Name | Description |
---|---|
bear_paragraph_two_column_page_attachments | Implements hook_page_attachments(). |