Skip to content
Snippets Groups Projects
Commit fa93a5ae authored by Ryan Jacobs's avatar Ryan Jacobs Committed by Ryan Jacobs
Browse files

Issue #2815189 by rjacobs, tstoeckler: Library dependency checking can fail for install profile

parent 90a19373
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,10 @@ class Extension extends CoreExtension implements ExtensionInterface { ...@@ -16,7 +16,10 @@ class Extension extends CoreExtension implements ExtensionInterface {
*/ */
public function getLibraryDependencies() { public function getLibraryDependencies() {
// @todo Make this unit-testable. // @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)'); assert('!empty($info)');
return isset($info['library_dependencies']) ? $info['library_dependencies'] : []; return isset($info['library_dependencies']) ? $info['library_dependencies'] : [];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment