abstract public function RealisticDummyContentEnvironment::implementFileGetContents in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentEnvironment.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEnvironment::implementFileGetContents()
- 3.x api/src/includes/RealisticDummyContentEnvironment.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEnvironment::implementFileGetContents()
Internal function used to get the contents of a file.
Wrapper around PHP's file_get_contents() (or a simulation thereof). This function will not return an exception. Please use RealisticDummyContentEnvironment::file_get_contents(), instead.
Parameters
string $filename: A valid filename, for example /drupal/root/sites/all/modules/your_module/ realistic_dummy_content/fields/node/blog/body/03.txt.
Return value
object Undefined in case the filename is invalid; otherwise returns the contents of the file.
1 call to RealisticDummyContentEnvironment::implementFileGetContents()
- RealisticDummyContentEnvironment::fileGetContents in api/
src/ includes/ RealisticDummyContentEnvironment.php - Get the contents of a file.
1 method overrides RealisticDummyContentEnvironment::implementFileGetContents()
- RealisticDummyContentLiveEnvironment::implementFileGetContents in api/
src/ includes/ RealisticDummyContentLiveEnvironment.php - Internal function used to get the contents of a file.
File
- api/
src/ includes/ RealisticDummyContentEnvironment.php, line 91
Class
- RealisticDummyContentEnvironment
- The abstract base environment.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public abstract function implementFileGetContents($filename);