static function Environment::drupalGetPath in Realistic Dummy Content 8
Wrapper around drupal_get_path().
Throws
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\environmentsCode
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);
}