function ModuleRuntimeRequirementsHooks::runtimeRequirements
Implements hook_runtime_requirements().
File
-
core/
modules/ system/ tests/ modules/ module_runtime_requirements/ src/ Hook/ ModuleRuntimeRequirementsHooks.php, line 20
Class
- ModuleRuntimeRequirementsHooks
- Hook implementations for module_runtime_requirements.
Namespace
Drupal\module_runtime_requirements\HookCode
public function runtimeRequirements() : array {
return [
'test.runtime.error' => [
'title' => $this->t('RuntimeError'),
'value' => $this->t('None'),
'description' => $this->t('Runtime Error.'),
'severity' => REQUIREMENT_ERROR,
],
'test.runtime.error.alter' => [
'title' => $this->t('RuntimeError'),
'value' => $this->t('None'),
'description' => $this->t('Runtime Error.'),
'severity' => REQUIREMENT_ERROR,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.