You are here

DummyRemoteReadOnlyStreamWrapper.php in Drupal 9

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

Namesort descending Description
DummyRemoteReadOnlyStreamWrapper Dummy read-only remote stream wrapper (dummy-remote-readonly://).