public function AkamaiClientV3::submitConfigurationForm in Akamai 8.3
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides PluginFormInterface::submitConfigurationForm
File
- src/
Plugin/ Client/ AkamaiClientV3.php, line 168
Class
- AkamaiClientV3
- Defines the CCUv3 client version for Akamai.
Namespace
Drupal\akamai\Plugin\ClientCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$actions = array_fill_keys($this
->validActions(), FALSE);
$actions[$form_state
->getValue([
'v3',
'action',
])] = TRUE;
$this->configFactory
->getEditable('akamai.settings')
->set('action_v3', $actions)
->set('purge_urls_with_hostname', $form_state
->getValue([
'v3',
'purge_urls_with_hostname',
]))
->save();
}