function StreamWrapperManagerInterface::getTarget
Same name in other branches
- 8.9.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()
- 10 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()
- 11.x core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()
Returns the part of a URI after the schema.
Parameters
string $uri: A stream, referenced as "scheme://target" or "data:target".
Return value
string|bool A string containing the target (path), or FALSE if none. For example, the URI "public://sample/test.txt" would return "sample/test.txt".
See also
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme()
1 method overrides StreamWrapperManagerInterface::getTarget()
- StreamWrapperManager::getTarget in core/
lib/ Drupal/ Core/ StreamWrapper/ StreamWrapperManager.php - Returns the part of a URI after the schema.
File
-
core/
lib/ Drupal/ Core/ StreamWrapper/ StreamWrapperManagerInterface.php, line 185
Class
- StreamWrapperManagerInterface
- Provides a StreamWrapper manager.
Namespace
Drupal\Core\StreamWrapperCode
public static function getTarget($uri);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.