public function StreamWrapperManagerInterface::isValidScheme in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidScheme()
- 9 core/lib/Drupal/Core/StreamWrapper/StreamWrapperManagerInterface.php \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidScheme()
Checks that the scheme of a stream URI is valid.
Confirms that there is a registered stream handler for the provided scheme and that it is callable. This is useful if you want to confirm a valid scheme without creating a new instance of the registered handler.
Parameters
string $scheme: A URI scheme, a stream is referenced as "scheme://target".
Return value
bool Returns TRUE if the string is the name of a validated stream, or FALSE if the scheme does not have a registered handler.
File
- core/
lib/ Drupal/ Core/ StreamWrapper/ StreamWrapperManagerInterface.php, line 232
Class
- StreamWrapperManagerInterface
- Provides a StreamWrapper manager.
Namespace
Drupal\Core\StreamWrapperCode
public function isValidScheme($scheme);