You are here

function facets_update_dependencies in Facets 8

Implements hook_update_dependencies().

File

./facets.install, line 15
Update hooks for the facets module.

Code

function facets_update_dependencies() {
  $dependencies = [];
  if (version_compare(\Drupal::VERSION, '8.6', '>=') && \Drupal::service('module_handler')
    ->moduleExists('block_content')) {

    // block_content_update_8600() adds some fields to Blocks that makes
    // facets_update_8006() fail if upgraded at the same time.
    $dependencies['facets'][8006] = [
      'block_content' => 8600,
    ];
  }
  return $dependencies;
}