You are here

public function FlushSingleImage::flush in Flush Single Image Styles 8

{inheritdoc}

Overrides FlushSingleImageInterface::flush

File

src/FlushSingleImage.php, line 38

Class

FlushSingleImage
Class FlushSingleImage.

Namespace

Drupal\flush_single_image

Code

public function flush($path) {
  $style_paths = $this
    ->getStylePaths($path);
  foreach ($style_paths as $style_path) {
    $this->fileSystem
      ->unlink($style_path);
  }
  return $style_paths;
}