You are here

public function CdnWarmer::submitConfigurationForm in Warmer 8

Same name and namespace in other branches
  1. 2.x modules/warmer_cdn/src/Plugin/warmer/CdnWarmer.php \Drupal\warmer_cdn\Plugin\warmer\CdnWarmer::submitConfigurationForm()

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 WarmerPluginBase::submitConfigurationForm

File

modules/warmer_cdn/src/Plugin/warmer/CdnWarmer.php, line 151

Class

CdnWarmer
The cache warmer for the built-in entity cache.

Namespace

Drupal\warmer_cdn\Plugin\warmer

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $configuration = $form_state
    ->getValues() + $this->configuration;
  $configuration['urls'] = $this
    ->extractTextarea($configuration, 'urls');
  $configuration['headers'] = $this
    ->extractTextarea($configuration, 'headers');
  $this
    ->setConfiguration($configuration);
}