You are here

pdb_vue.install in Decoupled Blocks: Vue.js 8

Update hooks.

File

pdb_vue.install
View source
<?php

/**
 * @file
 * Update hooks.
 */

/**
 * Add in a version config defaulted to vue2 for existing sites.
 */
function pdb_vue_update_8101(&$sandbox) {

  /** @var \Drupal\Core\Config\Config $config */
  $config = \Drupal::service('config.factory')
    ->getEditable('pdb_vue.settings');
  $config
    ->set('version', 'vue2')
    ->save();
  return t('Set the default version of Vue to 2 for existing sites.');
}

Functions

Namesort descending Description
pdb_vue_update_8101 Add in a version config defaulted to vue2 for existing sites.