public function TestEnvironment::getAdditionalDeployFormElements in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 tests/modules/build_hooks_test/src/Plugin/FrontendEnvironment/TestEnvironment.php \Drupal\build_hooks_test\Plugin\FrontendEnvironment\TestEnvironment::getAdditionalDeployFormElements()
Allows the plugin to add elements to the deployment form.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
Return value
array A form array to add to the deployment form.
Overrides FrontendEnvironmentInterface::getAdditionalDeployFormElements
File
- tests/
modules/ build_hooks_test/ src/ Plugin/ FrontendEnvironment/ TestEnvironment.php, line 45
Class
- TestEnvironment
- Defines a test environment plugin.
Namespace
Drupal\build_hooks_test\Plugin\FrontendEnvironmentCode
public function getAdditionalDeployFormElements(FormStateInterface $form_state) {
return [
[
'#markup' => '<h3>Hi there</h3>',
],
];
}