public function AdminConfig::submitForm in Facebook Instant Articles 8
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 ConfigFormBase::submitForm
File
- src/
Form/ AdminConfig.php, line 62 - Contains Drupal\fb_instant_articles\Form\AdminConfig.
Class
- AdminConfig
- Class AdminConfig.
Namespace
Drupal\fb_instant_articles\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('fb_instant_articles.adminconfig')
->set('pagesid', $form_state
->getValue('pagesid'))
->save();
}