You are here

public function NetlifyFrontendEnvironment::frontEndEnvironmentSubmit in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php \Drupal\build_hooks_netlify\Plugin\FrontendEnvironment\NetlifyFrontendEnvironment::frontEndEnvironmentSubmit()

Overrides FrontendEnvironmentBase::frontEndEnvironmentSubmit

File

modules/build_hooks_netlify/src/Plugin/FrontendEnvironment/NetlifyFrontendEnvironment.php, line 106

Class

NetlifyFrontendEnvironment
Provides a 'Netlify' frontend environment type.

Namespace

Drupal\build_hooks_netlify\Plugin\FrontendEnvironment

Code

public function frontEndEnvironmentSubmit($form, FormStateInterface $form_state) {
  $this->configuration['api_id'] = $form_state
    ->getValue('api_id');
  $this->configuration['branch'] = $form_state
    ->getValue('branch');
  $this->configuration['build_hook_url'] = $form_state
    ->getValue('build_hook_url');
}