StreamWrapperManager::getWrappers

public StreamWrapperManager::getWrappers($filter = StreamWrapperInterface::ALL) Provides Drupal stream wrapper registry. A stream wrapper is an abstraction of a file system that allows Drupal to use the same set of methods to access both local files and remote resources. Provide a facility for managing and querying user-defined stream wrappers in PHP. PHP's internal stream_get_wrappers() doesn't return the class registered to handle a stream, which we need to be able to find the handler for cla

StreamWrapperManager::registerWrapper

public StreamWrapperManager::registerWrapper($scheme, $class, $type) Registers stream wrapper with PHP. Parameters string $scheme: The scheme of the stream wrapper. string $class: The class of the stream wrapper. int $type: The type of the stream wrapper. Overrides StreamWrapperManagerInterface::registerWrapper File core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php, line 190 Class StreamWrapperManager Provides a StreamWrapper manager. Namespace Drupal\Core\StreamWrapper Code

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::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::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

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

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::$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::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