Skip to content

Commit

Permalink
Merge pull request #175 from webflo/fix-install
Browse files Browse the repository at this point in the history
Fixes notices during module installation

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
  • Loading branch information
jhedstrom committed May 29, 2015
1 parent dd8a60d commit 613570f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ entity_type: user
type: entity_reference
settings:
target_type: taxonomy_term
options_list_callback: null
target_bundle: null
module: taxonomy
module: entity_reference
locked: false
cardinality: -1
translatable: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use Drupal\Core\Config\ExtensionInstallStorage;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Extension\ExtensionDiscovery;

class BehatTestExtensionInstallStorage extends ExtensionInstallStorage {

Expand All @@ -21,13 +22,14 @@ public function __construct(StorageInterface $config_storage, $directory = self:
$this->directory = 'override_config';
}


/**
* {@inheritdoc}
*/
protected function getAllFolders() {
if (!isset($this->folders)) {
$this->folders = $this->getComponentNames('module', array('behat_test'));
$listing = new ExtensionDiscovery(\Drupal::root());
$modules = $listing->scan('module');
$this->folders = $this->getComponentNames(array('behat_test' => $modules['behat_test']));
}
return $this->folders;
}
Expand Down

0 comments on commit 613570f

Please sign in to comment.