Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamWrapperManager.php

function StreamWrapperManager::addStreamWrapper

Adds a stream wrapper.

Internal use only.

Parameters

string $service_id: The service id.

string $class: The stream wrapper class.

string $scheme: The scheme for which the wrapper should be registered.

File

core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 159

Class

StreamWrapperManager
Provides a StreamWrapper manager.

Namespace

Drupal\Core\StreamWrapper

Code

public function addStreamWrapper($service_id, $class, $scheme) {
    $this->info[$scheme] = [
        'class' => $class,
        'type' => $class::getType(),
        'service_id' => $service_id,
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal