You are here

function lightning_media_update_dependencies in Lightning Media 8.4

Same name and namespace in other branches
  1. 8 lightning_media.install \lightning_media_update_dependencies()
  2. 8.2 lightning_media.install \lightning_media_update_dependencies()
  3. 8.3 lightning_media.install \lightning_media_update_dependencies()

Implements hook_update_dependencies().

File

./lightning_media.install, line 408
Contains install and update routines for Lightning Media.

Code

function lightning_media_update_dependencies() {
  $dependencies = [
    'lightning_media' => [
      8017 => [
        'media_entity' => 8201,
      ],
      8018 => [
        'media_entity' => 8201,
      ],
    ],
    'media_entity' => [
      8201 => [
        'system' => 8402,
      ],
    ],
  ];
  if (\Drupal::moduleHandler()
    ->moduleExists('lightning_api')) {
    $dependencies['media_entity'][8201]['lightning_api'] = 8002;
    $dependencies['lightning_media'][8017]['lightning_api'] = 8002;
  }
  return $dependencies;
}