DummyRemoteReadOnlyStreamWrapper.php

Same filename and directory in other branches
  1. 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteReadOnlyStreamWrapper.php
  2. 8.9.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteReadOnlyStreamWrapper.php
  3. 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteReadOnlyStreamWrapper.php

Namespace

Drupal\file_test\StreamWrapper

File

core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteReadOnlyStreamWrapper.php

View source
<?php

namespace Drupal\file_test\StreamWrapper;

use Drupal\Core\StreamWrapper\StreamWrapperInterface;

/**
 * Dummy read-only remote stream wrapper (dummy-remote-readonly://).
 */
class DummyRemoteReadOnlyStreamWrapper extends DummyRemoteStreamWrapper {
    
    /**
     * {@inheritdoc}
     */
    public static function getType() {
        return StreamWrapperInterface::READ_VISIBLE;
    }
    
    /**
     * {@inheritdoc}
     */
    public function getName() {
        return t('Dummy remote read-only files');
    }
    
    /**
     * {@inheritdoc}
     */
    public function getDescription() {
        return t('Dummy remote read-only stream wrapper for testing.');
    }

}

Classes

Title Deprecated Summary
DummyRemoteReadOnlyStreamWrapper Dummy read-only remote stream wrapper (dummy-remote-readonly://).

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.