function LibraryDiscoveryParser::fileValidUri
Wraps \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri().
Deprecated
in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri() instead.
1 method overrides LibraryDiscoveryParser::fileValidUri()
- TestLibraryDiscoveryParser::fileValidUri in core/
tests/ Drupal/ Tests/ Core/ Asset/ LibraryDiscoveryParserTest.php - Wraps \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri().
File
-
core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryParser.php, line 447
Class
- LibraryDiscoveryParser
- Parses library files to get extension data.
Namespace
Drupal\Core\AssetCode
protected function fileValidUri($source) {
@trigger_error('fileValidUri() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\Core\\StreamWrapper\\StreamWrapperManagerInterface::isValidUri() instead. See https://www.drupal.org/node/3035273', E_USER_DEPRECATED);
return $this->streamWrapperManager
->isValidUri($source);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.