/** * @param $group String */ private function getBreakpointByName($group) { $breakpointsManager = $this->getDrupalService('breakpoint.manager'); $typeExtension = implode(',', array_values($breakpointsManager->getGroupProviders($group))); if ($typeExtension == 'theme') { $projectPath = drupal_get_path('theme', $group); } if ($typeExtension == 'module') { $projectPath = drupal_get_path('module', $group); } return Yaml::decode(file_get_contents($projectPath . '/' . $group . '.breakpoints.yml')); }