commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/commercetools_decoupled.install

modules/commercetools_decoupled/commercetools_decoupled.install
<?php

/**
 * @file
 * Install, update and uninstall hooks for the commercetools decoupled module.
 */

use Drupal\commercetools\CommercetoolsUpdates;
use Drupal\Core\Link;
use Drupal\Core\Url;

/**
 * Displays a welcome message with a link to the catalog.
 *
 * Implements hook_install().
 */
function commercetools_decoupled_install() {
  CommercetoolsUpdates::displayMessage(t("Link to the commercetools decoupled catalog configuration page: @link", [
    '@link' => Link::fromTextAndUrl(
      t('Decoupled Product Catalog'),
      Url::fromRoute('commercetools_decoupled.settings')
    )->toString(),
  ]));
}

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

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