diff --git a/src/Extension/Extension.php b/src/Extension/Extension.php index fd589db6ebb4918238a12771ebf0b425f2f36ecd..00204f02fdaa1afb4893c3b56365740630118c74 100644 --- a/src/Extension/Extension.php +++ b/src/Extension/Extension.php @@ -16,7 +16,10 @@ class Extension extends CoreExtension implements ExtensionInterface { */ public function getLibraryDependencies() { // @todo Make this unit-testable. - $info = system_get_info($this->getType(), $this->getName()); + $type = $this->getType(); + // system_get_info() lists profiles as type "module" + $type = $type == 'profile' ? 'module' : $type; + $info = system_get_info($type, $this->getName()); assert('!empty($info)'); return isset($info['library_dependencies']) ? $info['library_dependencies'] : []; }