You are here

function varbase_media_update_8707 in Varbase Media 8.7

Same name and namespace in other branches
  1. 9.0.x varbase_media.install \varbase_media_update_8707()

Issue #3125946: Fix missing varbase media entity presave hook.

For remote videos after introduced issues on update with [entityqueue] latest release. Please run [ drupal update:entities ] after the update of entityqueue and Varbase Media.

File

./varbase_media.install, line 417
Contains install and update for Varbase Media module.

Code

function varbase_media_update_8707() {

  // When the Remote Video media type is active.
  $media_bundle_ids = \Drupal::service('entity_type.bundle.info')
    ->getBundleInfo('media');
  if (isset($media_bundle_ids) && is_array($media_bundle_ids) && count($media_bundle_ids) > 0 && isset($media_bundle_ids['remote_video'])) {

    // Recall for the following update functions as they had changed
    // as hey introduced issues on update with [entityqueue] latest release
    // Issue #3115391: Create new field field_provider for remote video
    // media type.
    // Follow up on Update all remote videos, set field_provider value.
    // Follow up onUpdate all remote videos, set oembed view mode type.
    varbase_media_update_8704();
    varbase_media_update_8705();
    varbase_media_update_8706();
  }
}