You are here

function thunder_update_8114 in Thunder 8.2

Enable media_entity_pinterest module.

File

./thunder.install, line 710
Install, update and uninstall functions for the thunder installation profile.

Code

function thunder_update_8114() {
  if (\Drupal::moduleHandler()
    ->moduleExists('media_entity_pinterest')) {
    return;
  }

  /** @var \Drupal\update_helper\Updater $updater */
  $updater = \Drupal::service('update_helper.updater');
  $updater
    ->executeUpdate('thunder', 'v1_1__media_entity_pinterest');

  // Output logged messages to related channel of update execution.
  return $updater
    ->logger()
    ->output();
}