public function 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 148
Class
- StreamWrapperManager
- Provides a StreamWrapper manager.
Namespace
Drupal\Core\StreamWrapperCode
public function addStreamWrapper($service_id, $class, $scheme) { $this->info[$scheme] = array( 'class' => $class, 'type' => $class::getType(), 'service_id' => $service_id, ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StreamWrapper!StreamWrapperManager.php/function/StreamWrapperManager::addStreamWrapper/8.1.x