protected function 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 126
Class
- StreamWrapperManager
- Provides a StreamWrapper manager.
Namespace
Drupal\Core\StreamWrapperCode
protected function getWrapper($scheme, $uri) { if (isset($this->info[$scheme]['service_id'])) { $instance = $this->container->get($this->info[$scheme]['service_id']); $instance->setUri($uri); return $instance; } return FALSE; }
© 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::getWrapper/8.1.x