You are here

public static function RealisticDummyContentEnvironment::set in Realistic Dummy Content 7.2

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

Set the current environment.

See the comment on the private variable $env.

Parameters

object $environment: An object of type RealisticDummyContentEnvironment.

File

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

Class

RealisticDummyContentEnvironment
The abstract base environment.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public static function set($environment) {
  self::$env = $environment;
}