You are here

function breakpoint_group_labels in Breakpoints 8

Load all breakpoint groups as select options.

Return value

array An array containing breakpoint group labels indexed by their ids.

File

./breakpoint.module, line 375
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_group_labels() {
  $options = array();
  $breakpoint_groups = entity_load_multiple('breakpoint_group');
  foreach ($breakpoint_groups as $breakpoint_group) {
    $options[$breakpoint_group
      ->id()] = $breakpoint_group
      ->label();
  }
  asort($options);
  return $options;
}