5 * Contains \Drupal\behat_test\Config\BehatTestExtensionInstallStorage
8 namespace Drupal\behat_test\Config;
10 use Drupal\Core\Config\ExtensionInstallStorage;
11 use Drupal\Core\Config\StorageInterface;
12 use Drupal\Core\Extension\ExtensionDiscovery;
14 class BehatTestExtensionInstallStorage extends ExtensionInstallStorage {
19 public function __construct(StorageInterface $config_storage, $directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION, $include_profile = TRUE) {
20 parent::__construct($config_storage, $directory, $collection, $include_profile);
22 $this->directory = 'override_config';
28 protected function getAllFolders() {
29 if (!isset($this->folders)) {
30 $listing = new ExtensionDiscovery(\Drupal::root());
31 $modules = $listing->scan('module');
32 $this->folders = $this->getComponentNames(array('behat_test' => $modules['behat_test']));
34 return $this->folders;