jfu-1.0.x-dev/jfu.install

jfu.install
<?php

/**
 * @file
 * Update config, for the components.
 */
/**
 * Implementations of hook_update_N().
 */
function jfu_update_10201() {
  \Drupal::service('jfu_config.service')->migrateComponentConfig();

  $messenger = \Drupal::messenger();
  $messenger->addStatus(t('Update changes applied.'));
}

/**
 * @file
 * Update config.
 */
/**
 * Implementations of hook_update_N().
 */
function jfu_update_10202() {
  $configInstaller = \Drupal::service('config.installer');
  $configInstaller->installDefaultConfig('module', 'jfu');
}

/**
 * @file
 * Update Data.
 */
/**
 * Implementations of hook_update_N().
 */
function jfu_update_10203() {
  \Drupal::service('jfu_config.service')->setWidthHeight();

  $messenger = \Drupal::messenger();
  $messenger->addStatus(t('Update changes applied.'));
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc