Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / fixtures / drupal8 / modules / behat_test / src / Config / BehatTestExtensionInstallStorage.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\behat_test\Config\BehatTestExtensionInstallStorage
6  */
7
8 namespace Drupal\behat_test\Config;
9
10 use Drupal\Core\Config\ExtensionInstallStorage;
11 use Drupal\Core\Config\StorageInterface;
12 use Drupal\Core\Extension\ExtensionDiscovery;
13
14 class BehatTestExtensionInstallStorage extends ExtensionInstallStorage {
15
16   /**
17    * {@inheritdoc}
18    */
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);
21
22     $this->directory = 'override_config';
23   }
24
25   /**
26    * {@inheritdoc}
27    */
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']));
33     }
34     return $this->folders;
35   }
36
37 }