You are here

function responsive_menu_library_info_build in Responsive and off-canvas menu 4.1.x

Same name and namespace in other branches
  1. 8.3 responsive_menu.module \responsive_menu_library_info_build()
  2. 8.2 responsive_menu.module \responsive_menu_library_info_build()
  3. 4.4.x responsive_menu.module \responsive_menu_library_info_build()
  4. 4.0.x responsive_menu.module \responsive_menu_library_info_build()
  5. 4.3.x responsive_menu.module \responsive_menu_library_info_build()

Implements hook_library_info_build().

Adds a dynamic library definition for the breakpoint css.

See also

core.libraries.yml

hook_library_info_alter()

File

./responsive_menu.module, line 365
Contains procedural code.

Code

function responsive_menu_library_info_build() {
  $libraries = [];
  $libraries['responsive_menu.breakpoint'] = [
    'css' => [
      'theme' => [
        _get_breakpoint_css_filepath() . RESPONSIVE_MENU_BREAKPOINT_FILENAME => [],
      ],
    ],
  ];
  return $libraries;
}