StreamWrapperManager::getWrapper

protected StreamWrapperManager::getWrapper($scheme, $uri) Returns a stream wrapper instance. Parameters string $scheme: The scheme of the desired stream wrapper. string $uri: The URI of the stream. Return value \Drupal\Core\StreamWrapper\StreamWrapperInterface|bool A stream wrapper object, or false if the scheme is not available. File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 129 Class StreamWrapperManager Provides a StreamWrapper manager. Namespace Drupal\Core

StreamWrapperManager::getViaUri

public StreamWrapperManager::getViaUri($uri) Returns a reference to the stream wrapper class responsible for a URI. The scheme determines the stream wrapper class that should be used by consulting the stream wrapper registry. Parameters string $uri: A stream, referenced as "scheme://target". Return value \Drupal\Core\StreamWrapper\StreamWrapperInterface|bool Returns a new stream wrapper object appropriate for the given URI or FALSE if no registered handler could be found. For example, a URI o

StreamWrapperManager::getViaScheme

public StreamWrapperManager::getViaScheme($scheme) Returns a reference to the stream wrapper class responsible for a scheme. This helper method returns a stream instance using a scheme. That is, the passed string does not contain a "://". For example, "public" is a scheme but "public://" is a URI (stream). This is because the later contains both a scheme and target despite target being empty. Note: the instance URI will be initialized to "scheme://" so that you can make the customary method cal

StreamWrapperManager::getNames

public StreamWrapperManager::getNames($filter = StreamWrapperInterface::ALL) Returns registered stream wrapper names. Parameters int $filter: (Optional) Filters out all types except those with an on bit for each on bit in $filter. For example, if $filter is StreamWrapperInterface::WRITE_VISIBLE, which is equal to (StreamWrapperInterface::READ | StreamWrapperInterface::WRITE | StreamWrapperInterface::VISIBLE), then only stream wrappers with all three of these bits set are returned. Defaults to

StreamWrapperManager::getDescriptions

public StreamWrapperManager::getDescriptions($filter = StreamWrapperInterface::ALL) Returns registered stream wrapper descriptions. Parameters int $filter: (Optional) Filters out all types except those with an on bit for each on bit in $filter. For example, if $filter is StreamWrapperInterface::WRITE_VISIBLE, which is equal to (StreamWrapperInterface::READ | StreamWrapperInterface::WRITE | StreamWrapperInterface::VISIBLE), then only stream wrappers with all three of these bits set are returned

StreamWrapperManager::getClass

public StreamWrapperManager::getClass($scheme) Returns the stream wrapper class name for a given scheme. Parameters string $scheme: Stream scheme. Return value string|bool Return string if a scheme has a registered handler, or FALSE. Overrides StreamWrapperManagerInterface::getClass File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 110 Class StreamWrapperManager Provides a StreamWrapper manager. Namespace Drupal\Core\StreamWrapper Code public function getClass($s

StreamWrapperManager::addStreamWrapper

public StreamWrapperManager::addStreamWrapper($service_id, $class, $scheme) 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 151 Class StreamWrapperManager Provides a StreamWrapper manager. Namespace Drupal\Core\StreamWrapper Code public function addStreamWrapper($s

StreamWrapperManager::$wrappers

Contains collected stream wrappers. Keyed by filter, each value is itself an associative array keyed by scheme. Each of those values is an array representing a stream wrapper, with the following keys and values: class: stream wrapper class name type: a bitmask corresponding to the type constants in StreamWrapperInterface service_id: name of service The array on key StreamWrapperInterface::ALL contains representations of all schemes and corresponding wrappers. Type: array File core/lib/Drup

StreamWrapperManager::$info

Contains stream wrapper info. An associative array where keys are scheme names and values are themselves associative arrays with the keys class, type and (optionally) service_id, and string values. Type: array File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 26 Class StreamWrapperManager Provides a StreamWrapper manager. Namespace Drupal\Core\StreamWrapper Code protected $info = array();

StreamWrapperManager

Provides a StreamWrapper manager. Hierarchy class \Drupal\Core\StreamWrapper\StreamWrapperManager implements StreamWrapperManagerInterface, ContainerAwareInterface uses ContainerAwareTrait See also \Drupal\Core\StreamWrapper\StreamWrapperInterface File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 13 Namespace Drupal\Core\StreamWrapper Members Name Modifiers Type Description ContainerAwareTrait::$container protected property ContainerAwareTrait::se