You are here

public function EdgeEntityDisplaySettingsForm::submitForm in Apigee Edge 8

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 ConfigFormBase::submitForm

File

src/Form/EdgeEntityDisplaySettingsForm.php, line 214

Class

EdgeEntityDisplaySettingsForm
Configuration form for Apigee entities display settings.

Namespace

Drupal\apigee_edge\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->configFactory()
    ->getEditable("apigee_edge.display_settings.{$this->entityTypeId}")
    ->set('display_type', $form_state
    ->getValue('display_type'))
    ->set('view_mode', $form_state
    ->getValue('view_mode'))
    ->save();
  parent::submitForm($form, $form_state);
}