Ejemplo n.º 1
0
 /**
  * @param $group    String
  * @return mixed
  */
 private function getBreakpointByName($group)
 {
     $typeExtension = implode(',', array_values($this->breakpointManager->getGroupProviders($group)));
     if ($typeExtension == 'theme') {
         $projectPath = drupal_get_path('theme', $group);
     }
     if ($typeExtension == 'module') {
         $projectPath = drupal_get_path('module', $group);
     }
     $extensionFile = sprintf('%s/%s/%s.breakpoints.yml', $this->appRoot, $projectPath, $group);
     return Yaml::parse(file_get_contents($extensionFile));
 }