public SystemBrandingOffCanvasForm::submitConfigurationForm(array &$form, FormStateInterface $form_state)
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
- core/modules/outside_in/src/Form/SystemBrandingOffCanvasForm.php, line 95
 
Class
- SystemBrandingOffCanvasForm
 - The off-canvas form handler for the SystemBrandingBlock.
 
Namespace
Drupal\outside_in\Form
Code
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $site_info = $form_state->getValue('site_information');
  $this->configFactory->getEditable('system.site')
    ->set('name', $site_info['site_name'])
    ->set('slogan', $site_info['site_slogan'])
    ->save();
  $this->plugin->submitConfigurationForm($form, $form_state);
}
Please login to continue.