You are here

static function RealisticDummyContentEnvironment::Get in Realistic Dummy Content 7

Get the current environment.

see the comment on the private variable $env.

default to a live environment if none is set. (During testing, a mock environment will be set here so we can better control it.)

Return value

An object of type RealisticDummyContentEnvironment

1 call to RealisticDummyContentEnvironment::Get()
RealisticDummyContentBase::env in api/includes/RealisticDummyContentBase.inc

File

api/includes/RealisticDummyContentEnvironment.inc, line 35
Define RealisticDummyContentLiveEnvironment autoload class.

Class

RealisticDummyContentEnvironment
The abstract base environment.

Code

static function Get() {
  if (!self::$env) {
    self::$env = new RealisticDummyContentLiveEnvironment();
  }
  return self::$env;
}