Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes notices during module installation #175

Merged
merged 2 commits into from
May 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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