You are here

private function AdminSettingsForm::setFieldMappingsValues in Acquia Lift Connector 8

Same name and namespace in other branches
  1. 8.4 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::setFieldMappingsValues()
  2. 8.3 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::setFieldMappingsValues()

Set field mapping values.

Parameters

\Drupal\Core\Config\Config $settings: Acquia Lift config settings.

array $values: Field mappings values.

1 call to AdminSettingsForm::setFieldMappingsValues()
AdminSettingsForm::submitForm in src/Form/AdminSettingsForm.php
Form submission handler.

File

src/Form/AdminSettingsForm.php, line 383
Contains \Drupal\acquia_lift\Form\AdminSettingsForm.

Class

AdminSettingsForm
Defines a form that configures settings.

Namespace

Drupal\acquia_lift\Form

Code

private function setFieldMappingsValues(Config $settings, array $values) {
  $settings
    ->set('field_mappings.content_section', $values['content_section']);
  $settings
    ->set('field_mappings.content_keywords', $values['content_keywords']);
  $settings
    ->set('field_mappings.persona', $values['persona']);
}