You are here

protected function DemoImage::checkFile in Panopoly Core 8.2

Checks that a file exists and is readable.

We're wrapping the filesystem so it's easier to test ::transform().

Parameters

string $path: The path.

Return value

bool TRUE if the file is good; FALSE otherwise.

1 call to DemoImage::checkFile()
DemoImage::transform in src/Plugin/migrate/process/DemoImage.php
Performs the associated process.

File

src/Plugin/migrate/process/DemoImage.php, line 230

Class

DemoImage
Process plugin for creating demo images from files in the module.

Namespace

Drupal\panopoly_core\Plugin\migrate\process

Code

protected function checkFile($path) {
  return file_exists($path);
}