You are here

static function Environment::drupalGetPath in Realistic Dummy Content 8

Wrapper around drupal_get_path().

Throws

Exception

1 call to Environment::drupalGetPath()
Attribute::GetCandidateFiles in api/src/attributes/Attribute.php
Get all candidate files for a given field for this entity.

File

api/src/environments/Environment.php, line 424
Define autoload class.

Class

Environment
The abstract base environment.

Namespace

Drupal\realistic_dummy_content_api\environments

Code

static function drupalGetPath($type, $name) {
  if (!is_string($name)) {
    throw new Exception('Please use a string as a name when calling drupalGetPath()');
  }
  return drupal_get_path($type, $name);
}