/** * {@inheritdoc} */ public function getModule($name) { if (!$this->drupal7->module_exists($name)) { throw new \InvalidArgumentException(sprintf('The module %s does not exist.', $name)); } $filename = $this->drupal7->drupal_get_filename('module', $name); return new Extension($this->root, 'module', $filename, $name . '.info'); }