You are here

farm_update.module in farmOS 2.x

Hooks and customizations for the farm_update module.

File

modules/core/update/farm_update.module
View source
<?php

/**
 * @file
 * Hooks and customizations for the farm_update module.
 */

/**
 * Implements hook_rebuild().
 */
function farm_update_rebuild() {
  \Drupal::service('farm.update')
    ->rebuild();
}

/**
 * Implements hook_farm_update_exclude_config().
 */
function farm_update_farm_update_exclude_config() {

  // Exclude Drupal core configurations from automatic updates.
  return [
    'user.role.anonymous',
    'user.role.authenticated',
  ];
}