protected function AssetFileEntityHelper::phpFileGetContents in Media: Acquia DAM 8
Wrapper for file_get_contents().
This method exists so the functionality can be overridden in unit tests.
Parameters
string $uri: The URI of the file to get the contents of.
Return value
false|string The file data or FALSE on failure.
1 call to AssetFileEntityHelper::phpFileGetContents()
- AssetFileEntityHelper::fetchRemoteAssetData in src/
Service/ AssetFileEntityHelper.php - Fetches binary asset data from a remote source.
File
- src/
Service/ AssetFileEntityHelper.php, line 301
Class
- AssetFileEntityHelper
- Class AssetFileEntityHelper.
Namespace
Drupal\media_acquiadam\ServiceCode
protected function phpFileGetContents($uri) {
return file_get_contents($uri);
}