function country_update_8001 in Country 8
Update configuration schema.
File
- ./
country.install, line 11 - Contains install and update functions for Country module.
Code
function country_update_8001() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('views.filter.country_item');
$config
->set('type', [
'views_filter',
]);
$config
->set('label', [
'Country filter',
]);
$config
->save(TRUE);
$config = $config_factory
->getEditable('views.filter_value.country_item');
$config
->set('type', [
'mapping',
]);
$config
->set('label', [
'Country filter value',
]);
$config
->set('mapping.type.type', [
'string',
]);
$config
->set('mapping.type.label', [
'Type',
]);
$config
->save(TRUE);
}