Exclude config that we override in hook_install().

This commit is contained in:
Michael Stenta 2021-09-16 19:07:09 -04:00
parent a46c0923a0
commit 938fb5926c
5 changed files with 60 additions and 0 deletions

View File

@ -71,3 +71,15 @@ function farm_form_update_manager_update_form_alter(&$form, &$form_state, $form_
\Drupal::messenger()->addError($message);
$form['actions']['#access'] = FALSE;
}
/**
* Implements hook_farm_update_exclude_config().
*/
function farm_farm_update_exclude_config() {
// Exclude config that we have overridden in hook_install().
return [
'system.file',
'user.settings',
];
}

View File

@ -105,3 +105,16 @@ function farm_api_entity_base_field_info(EntityTypeInterface $entity_type) {
return $fields;
}
/**
* Implements hook_farm_update_exclude_config().
*/
function farm_api_farm_update_exclude_config() {
// Exclude config that we have overridden in hook_install().
return [
'jsonapi.settings',
'jsonapi_extras.settings',
'simple_oauth.settings',
];
}

View File

@ -342,3 +342,14 @@ function farm_entity_form_alter(&$form, FormStateInterface $form_state, $form_id
// Disable access to the revision checkbox.
$form['revision']['#access'] = FALSE;
}
/**
* Implements hook_farm_update_exclude_config().
*/
function farm_entity_farm_update_exclude_config() {
// Exclude config that we have overridden in hook_install().
return [
'entity_reference_integrity_enforce.settings',
];
}

View File

@ -31,3 +31,14 @@ function farm_ui_location_help($route_name, RouteMatchInterface $route_match) {
return $output;
}
/**
* Implements hook_farm_update_exclude_config().
*/
function farm_ui_location_farm_update_exclude_config() {
// Exclude config that we have overridden in hook_install().
return [
'inspire_tree.settings',
];
}

View File

@ -177,3 +177,16 @@ function farm_ui_theme_farm_ui_theme_region_items(string $entity_type) {
return [];
}
}
/**
* Implements hook_farm_update_exclude_config().
*/
function farm_ui_theme_farm_update_exclude_config() {
// Exclude config that we have overridden in hook_install().
return [
'block.block.gin_local_actions',
'gin.settings',
'system.theme',
];
}