You are here

protected function FlushSingleImage::buildUri in Flush Single Image Styles 8

Build a URI for a given path if it's missing the scheme.

1 call to FlushSingleImage::buildUri()
FlushSingleImage::getStylePaths in src/FlushSingleImage.php
{inheritdoc}

File

src/FlushSingleImage.php, line 72

Class

FlushSingleImage
Class FlushSingleImage.

Namespace

Drupal\flush_single_image

Code

protected function buildUri($path) {
  if (!$this->fileSystem
    ->uriScheme($path)) {
    $path = file_default_scheme() . '://' . preg_replace('/^\\//', '', $path);
  }
  return $path;
}