protected function DemoImage::checkFile in Panopoly 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 modules/
panopoly/ panopoly_core/ src/ Plugin/ migrate/ process/ DemoImage.php - Performs the associated process.
File
- modules/
panopoly/ panopoly_core/ 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\processCode
protected function checkFile($path) {
return file_exists($path);
}