You are here

protected function AssetImageHelper::phpFileExists in Media: Acquia DAM 8

Determine if the given file exists.

This call is broken out for better flexibility when writing tests.

Parameters

string $uri: The URI to a file.

Return value

bool TRUE if the given file exists.

3 calls to AssetImageHelper::phpFileExists()
AssetImageHelper::getFallbackThumbnail in src/Service/AssetImageHelper.php
Get a fallback image to use for the thumbnail.
AssetImageHelper::getGenericMediaIcon in src/Service/AssetImageHelper.php
Gets a generic file icon based on mimetype.
AssetImageHelper::setFallbackThumbnail in src/Service/AssetImageHelper.php
Sets a new default fallback image.

File

src/Service/AssetImageHelper.php, line 243

Class

AssetImageHelper
Class AssetImageHelper.

Namespace

Drupal\media_acquiadam\Service

Code

protected function phpFileExists($uri) {
  return file_exists($uri);
}