2021-09-16 12:09:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Hooks and customizations for the farm_update module.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_rebuild().
|
|
|
|
*/
|
|
|
|
function farm_update_rebuild() {
|
|
|
|
\Drupal::service('farm.update')->rebuild();
|
|
|
|
}
|
2021-09-17 01:06:46 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_farm_update_exclude_config().
|
|
|
|
*/
|
|
|
|
function farm_update_farm_update_exclude_config() {
|
|
|
|
|
|
|
|
// Exclude Drupal core configurations from automatic updates.
|
|
|
|
return [
|
2021-09-17 17:14:59 +02:00
|
|
|
'user.role.anonymous',
|
|
|
|
'user.role.authenticated',
|
2021-09-17 01:06:46 +02:00
|
|
|
];
|
|
|
|
}
|