public function GenericFrontendEnvironment::frontEndEnvironmentForm in Build Hooks 8.2
Same name and namespace in other branches
- 3.x src/Plugin/FrontendEnvironment/GenericFrontendEnvironment.php \Drupal\build_hooks\Plugin\FrontendEnvironment\GenericFrontendEnvironment::frontEndEnvironmentForm()
Overrides FrontendEnvironmentBase::frontEndEnvironmentForm
File
- src/
Plugin/ FrontendEnvironment/ GenericFrontendEnvironment.php, line 30
Class
- GenericFrontendEnvironment
- Provides a 'Generic' frontend environment type.
Namespace
Drupal\build_hooks\Plugin\FrontendEnvironmentCode
public function frontEndEnvironmentForm($form, FormStateInterface $form_state) {
// For this type of plugin, we only need the build hook url:
$form['build_hook_url'] = [
'#type' => 'url',
'#title' => $this
->t('Build hook url'),
'#maxlength' => 255,
'#default_value' => isset($this->configuration['build_hook_url']) ? $this->configuration['build_hook_url'] : '',
'#description' => $this
->t("Build hook url for this environment."),
'#required' => TRUE,
];
return $form;
}