You are here

function profile_update_dependencies in Profile 8

Implements hook_update_dependencies().

File

./profile.install, line 14
Install, update and uninstall functions for the profile module.

Code

function profile_update_dependencies() {
  $dependencies = [];

  // Drupal's system update 8501 alters revisionable entities, this uses the
  // entity_keys. The langcode key was removed from the Profile entity in
  // profile_update_8001 but it was not removed from the stored entity_keys. To
  // fix this, update 8003 must run before 8501 is executed.
  $dependencies['system'][8501] = [
    'profile' => 8003,
  ];
  return $dependencies;
}