function breakpoint_get_module_media_queries

Get a list of available breakpoints from a specified module.

Parameters

string $module: The name of the module.

Return value

array An array of breakpoints in the form $breakpoint['name'] = 'media query'.

1 call to breakpoint_get_module_media_queries()
_breakpoint_modules_enabled in drupal/core/modules/breakpoint/breakpoint.module
Import breakpoints from all new enabled modules.

File

drupal/core/modules/breakpoint/breakpoint.module, line 278
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_get_module_media_queries($module) {
  if (!module_exists($module)) {
    throw new \Exception('Illegal module name passed.');
  }
  $config = config($module . '.breakpoints');
  if ($config) {
    return $config
      ->get();
  }
  return array();
}