public function CircleV2::frontEndEnvironmentSubmit in Build Hooks 8.2
Same name and namespace in other branches
- 3.x modules/build_hooks_circleci/src/Plugin/FrontendEnvironment/CircleV2.php \Drupal\build_hooks_circleci\Plugin\FrontendEnvironment\CircleV2::frontEndEnvironmentSubmit()
Overrides FrontendEnvironmentBase::frontEndEnvironmentSubmit
File
- modules/
build_hooks_circleci/ src/ Plugin/ FrontendEnvironment/ CircleV2.php, line 236
Class
- CircleV2
- Defines a circle v2 environment.
Namespace
Drupal\build_hooks_circleci\Plugin\FrontendEnvironmentCode
public function frontEndEnvironmentSubmit($form, FormStateInterface $form_state) {
parent::frontEndEnvironmentSubmit($form, $form_state);
$this->configuration['token'] = $form_state
->getValue('token');
$this->configuration['project'] = $form_state
->getValue('project');
$this->configuration['reference'] = $form_state
->getValue('reference');
$this->configuration['type'] = $form_state
->getValue('type');
$this->configuration['parameters'] = array_filter($form_state
->getValue('parameters'), function (array $item) {
return !empty($item['name']);
});
}