/** * {@inheritdoc} */ public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { parent::submitConfigurationForm($form, $form_state); if ($form_state->hasValue('page_title')) { $this->configuration['page_title'] = $form_state->getValue('page_title'); } // If the blocks were rearranged, update their values. if (!$form_state->isValueEmpty('blocks')) { foreach ($form_state->getValue('blocks') as $block_id => $block_values) { $this->updateBlock($block_id, $block_values); } } }
/** * {@inheritdoc} */ public function submitConfigurationForm(array &$form, FormStateInterface $form_state) { parent::submitConfigurationForm($form, $form_state); $this->configuration['status_code'] = $form_state->getValue('status_code'); }
public function submitConfigurationForm(array &$form, array &$form_state) { parent::submitConfigurationForm($form, $form_state); $this->configuration['layout'] = $form_state['values']['layout']; // @note: we have no "oop"-way to latch onto the Page-preSave hook. if (!isset($this->configuration['regions'])) { $this->configuration['regions'] = $this->getLayoutRegions()->getConfiguration(); } }