public function PanopolyAdminBlocksForm::submitForm in Panopoly 8.2
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- modules/
panopoly/ panopoly_admin/ src/ Form/ PanopolyAdminBlocksForm.php, line 104
Class
- PanopolyAdminBlocksForm
- Form to administer available blocks.
Namespace
Drupal\panopoly_admin\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->configFactory
->getEditable('panopoly_admin.settings');
$config
->set('blocks', $form_state
->getValue('block_values'));
$config
->save();
}