Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_assets_element_info_alter(array &$types)
- {
- if (isset($types['table'])) {
- $types['table']['#attached']['library'][] = 'my_assets/fancy';
- }
- }
- function my_assets_page_attachments(array &$attachments) {
- $attachments['#attached']['library'][] = 'my_assets/fancy';
- }
Add Comment
Please, Sign In to add comment