function environment_indicator_load in Environment Indicator 8.3
Same name and namespace in other branches
- 8.2 environment_indicator.module \environment_indicator_load()
- 4.x environment_indicator.module \environment_indicator_load()
Loads an environment indicator in a procedural way.
Parameters
string $environment_id: The entity ID.
Return value
\Drupal\Core\Entity\EntityInterface|null The loaded entity or null otherwise.
1 string reference to 'environment_indicator_load'
- EnvironmentIndicatorForm::form in src/
EnvironmentIndicatorForm.php - This actually builds your form.
File
- ./
environment_indicator.module, line 357 - Module implementation file.
Code
function environment_indicator_load($environment_id) {
return \Drupal::entityTypeManager()
->getStorage('environment_indicator')
->load($environment_id);
}