You are here

public function DeploymentForm::submitForm in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x src/Form/DeploymentForm.php \Drupal\build_hooks\Form\DeploymentForm::submitForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/DeploymentForm.php, line 179

Class

DeploymentForm
Class DeploymentForm.

Namespace

Drupal\build_hooks\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {

  // Get the environment entity:

  /** @var \Drupal\build_hooks\Entity\FrontendEnvironment $frontend_environment */
  $frontend_environment = $form_state
    ->getValue('frontend_environment');
  $this->buildHooksTrigger
    ->triggerBuildHookForEnvironment($frontend_environment);
}