function StreamWrapperManagerInterface::getViaUri
Same name in other branches
- 8.9.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getViaUri()
- 10 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getViaUri()
- 11.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getViaUri()
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 of "private://example.txt" would return a new private stream wrapper object (Drupal\Core\StreamWrapper\PrivateStream).
1 method overrides StreamWrapperManagerInterface::getViaUri()
- StreamWrapperManager::getViaUri in core/
lib/ Drupal/ Core/ StreamWrapper/ StreamWrapperManager.php - Returns a reference to the stream wrapper class responsible for a URI.
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ StreamWrapperManagerInterface.php, line 147
Class
- StreamWrapperManagerInterface
- Provides a StreamWrapper manager.
Namespace
Drupal\Core\StreamWrapperCode
public function getViaUri($uri);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.