Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Breakpoints / DebugCommand.php
index fd23dd52d91a623c42add87df94dcbfd3f79799a..bbdbe86bd2490a005168c7aba3ae12f89e4c8404 100644 (file)
@@ -106,12 +106,7 @@ class DebugCommand extends Command
             array_values($this->breakpointManager->getGroupProviders($group))
         );
 
-        if ($typeExtension == 'theme') {
-            $projectPath = drupal_get_path('theme', $group);
-        }
-        if ($typeExtension == 'module') {
-            $projectPath = drupal_get_path('module', $group);
-        }
+        $projectPath = drupal_get_path($typeExtension, $group);
 
         $extensionFile = sprintf(
             '%s/%s/%s.breakpoints.yml',