You are here

function basic_cart_page_attachments in Basic cart 8.4

Same name and namespace in other branches
  1. 8.6 basic_cart.module \basic_cart_page_attachments()
  2. 8 basic_cart.module \basic_cart_page_attachments()
  3. 8.0 basic_cart.module \basic_cart_page_attachments()
  4. 8.2 basic_cart.module \basic_cart_page_attachments()
  5. 8.3 basic_cart.module \basic_cart_page_attachments()
  6. 8.5 basic_cart.module \basic_cart_page_attachments()

Implements hook_page_attachments().

File

./basic_cart.module, line 59
Basic cart module file.

Code

function basic_cart_page_attachments(array &$page) {
  $page['#attached']['library'][] = 'basic_cart/basic_cart';
}