You are here

protected function ConfigForm::saveDomain in Akamai 8.3

Converts a form value for 'domain' back to a saveable array.

Parameters

string $value: The value submitted via the form.

Return value

array An array suitable for saving back to config.

File

src/Form/ConfigForm.php, line 426

Class

ConfigForm
A configuration form to interact with Akamai API settings.

Namespace

Drupal\akamai\Form

Code

protected function saveDomain($value) {
  $domain = [
    'production' => FALSE,
    'staging' => FALSE,
  ];
  $domain[$value] = TRUE;
  return $domain;
}