Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / config / tests / src / TestLoader.php
1 <?php
2
3 namespace Consolidation\TestUtils;
4
5 use Consolidation\Config\Loader\ConfigLoaderInterface;
6
7 class TestLoader implements ConfigLoaderInterface
8 {
9     protected $data;
10     protected $sourceName;
11
12     public function set($data)
13     {
14         $this->data = $data;
15     }
16
17     public function setSourceName($name)
18     {
19         $this->sourceName = $name;
20     }
21
22     public function export()
23     {
24         return $this->data;
25     }
26
27     public function keys()
28     {
29         return array_keys($this->data);
30     }
31
32     public function getSourceName()
33     {
34         return $this->sourceName;
35     }
36 }