You are here

public function RealisticDummyContentAttribute::env in Realistic Dummy Content 7.2

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

Returns the appropriate environment, real or testing.

File

api/src/includes/RealisticDummyContentAttribute.php, line 78

Class

RealisticDummyContentAttribute
Represents either a field or a property for an entity.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function env() {
  return $this
    ->getEntity()
    ->env();
}