Get a list of available breakpoints from a specified theme.
string $theme_key: The name of the theme.
array An array of breakpoints in the form $breakpoint['name'] = 'media query'.
function breakpoint_get_theme_media_queries($theme_key) {
$themes = list_themes();
if (!isset($themes[$theme_key])) {
throw new \Exception('Illegal theme_key passed.');
}
$config = config($theme_key . '.breakpoints');
if ($config) {
return $config
->get();
}
return array();
}