function responsive_tables_filter_update_8001 in Responsive Tables Filter 8
Set initial responsive tables filter settings for existing sites.
File
- ./
responsive_tables_filter.install, line 11 - Responsive Tables Filter install file.
Code
function responsive_tables_filter_update_8001() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('responsive_tables_filter.settings');
$config
->set('views_enabled', '0');
$config
->set('views_tablesaw_mode', 'Stack Mode');
$config
->save();
}