Pull merge.
[yaffs-website] / web / core / modules / file / tests / file_test / src / StreamWrapper / DummyRemoteStreamWrapper.php
1 <?php
2
3 namespace Drupal\file_test\StreamWrapper;
4
5 use Drupal\Core\StreamWrapper\PublicStream;
6
7 /**
8  * Helper class for testing the stream wrapper registry.
9  *
10  * Dummy remote stream wrapper implementation (dummy-remote://).
11  *
12  * Basically just the public scheme but not returning a local file for realpath.
13  */
14 class DummyRemoteStreamWrapper extends PublicStream {
15
16   /**
17    * {@inheritdoc}
18    */
19   public function getName() {
20     return t('Dummy files (remote)');
21   }
22
23   /**
24    * {@inheritdoc}
25    */
26   public function getDescription() {
27     return t('Dummy wrapper for simpletest (remote).');
28   }
29
30   public function realpath() {
31     return FALSE;
32   }
33
34 }