Implements \Drupal\Core\Form\FormInterface::submitForm().
Overrides SystemConfigFormBase::submitForm
public function submitForm(array &$form, array &$form_state) {
$this->configFactory
->get('statistics.settings')
->set('count_content_views', $form_state['values']['statistics_count_content_views'])
->save();
// The popular statistics block is dependent on these settings, so clear the
// block plugin definitions cache.
if ($this->moduleHandler
->moduleExists('block')) {
drupal_container()
->get('plugin.manager.block')
->clearCachedDefinitions();
}
parent::submitForm($form, $form_state);
}