Exclude config that we override in hook_install().
This commit is contained in:
parent
a46c0923a0
commit
938fb5926c
12
farm.profile
12
farm.profile
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue