You are here

public function TestEnvironment::frontEndEnvironmentForm in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 tests/modules/build_hooks_test/src/Plugin/FrontendEnvironment/TestEnvironment.php \Drupal\build_hooks_test\Plugin\FrontendEnvironment\TestEnvironment::frontEndEnvironmentForm()

Overrides FrontendEnvironmentBase::frontEndEnvironmentForm

File

tests/modules/build_hooks_test/src/Plugin/FrontendEnvironment/TestEnvironment.php, line 56

Class

TestEnvironment
Defines a test environment plugin.

Namespace

Drupal\build_hooks_test\Plugin\FrontendEnvironment

Code

public function frontEndEnvironmentForm($form, FormStateInterface $form_state) {
  return parent::frontEndEnvironmentForm($form, $form_state) + [
    'whiz' => [
      '#type' => 'textfield',
      '#title' => $this
        ->t('Whiz?'),
      '#default_value' => $this->configuration['whiz'],
    ],
  ];
}