Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / fixtures / drupal8 / modules / behat_test / src / Config / BehatTestExtensionInstallStorage.php
diff --git a/vendor/drupal/drupal-extension/fixtures/drupal8/modules/behat_test/src/Config/BehatTestExtensionInstallStorage.php b/vendor/drupal/drupal-extension/fixtures/drupal8/modules/behat_test/src/Config/BehatTestExtensionInstallStorage.php
new file mode 100644 (file)
index 0000000..e68ce39
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\behat_test\Config\BehatTestExtensionInstallStorage
+ */
+
+namespace Drupal\behat_test\Config;
+
+use Drupal\Core\Config\ExtensionInstallStorage;
+use Drupal\Core\Config\StorageInterface;
+use Drupal\Core\Extension\ExtensionDiscovery;
+
+class BehatTestExtensionInstallStorage extends ExtensionInstallStorage {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(StorageInterface $config_storage, $directory = self::CONFIG_INSTALL_DIRECTORY, $collection = StorageInterface::DEFAULT_COLLECTION, $include_profile = TRUE) {
+    parent::__construct($config_storage, $directory, $collection, $include_profile);
+
+    $this->directory = 'override_config';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function getAllFolders() {
+    if (!isset($this->folders)) {
+      $listing = new ExtensionDiscovery(\Drupal::root());
+      $modules = $listing->scan('module');
+      $this->folders = $this->getComponentNames(array('behat_test' => $modules['behat_test']));
+    }
+    return $this->folders;
+  }
+
+}