protected static function UrlBag::getLocalWrapperSchemas in Mini site 8
Helper to get declared file wrappers.
2 calls to UrlBag::getLocalWrapperSchemas()
- UrlBag::toAbsolute in src/
UrlBag.php - Convert current URL to absolute.
- UrlBag::toLocal in src/
UrlBag.php - Convert URL to local URL.
File
- src/
UrlBag.php, line 291
Class
- UrlBag
- Class UrlBag.
Namespace
Drupal\minisiteCode
protected static function getLocalWrapperSchemas() {
static $local_schemas;
if (!$local_schemas) {
$stream_wrapper_manager = \Drupal::service('stream_wrapper_manager');
$local_schemas = array_keys($stream_wrapper_manager
->getWrappers(StreamWrapperInterface::LOCAL));
}
return $local_schemas;
}