You are here

public function RealisticDummyContentEnvironment::fileSaveData in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentEnvironment.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEnvironment::fileSaveData()
  2. 3.x api/src/includes/RealisticDummyContentEnvironment.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentEnvironment::fileSaveData()

Save the file data to the real or test environment.

Parameters

string $data: The data.

string $destination: Where to put it.

Return value

object The file object.

Throws

\Exception

1 method overrides RealisticDummyContentEnvironment::fileSaveData()
RealisticDummyContentDummyEnvironment::fileSaveData in api/src/includes/RealisticDummyContentDummyEnvironment.php
Save the file data to the real or test environment.

File

api/src/includes/RealisticDummyContentEnvironment.php, line 106

Class

RealisticDummyContentEnvironment
The abstract base environment.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function fileSaveData($data, $destination = NULL) {
  $return = $this
    ->implementFileSaveData($data, $destination);
  return $return;
}