commercetools-8.x-1.2-alpha1/modules/commercetools_content/commercetools_content.install
modules/commercetools_content/commercetools_content.install
<?php
/**
* @file
* Install, update and uninstall hooks for the commercetools content 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_content_install() {
CommercetoolsUpdates::displayMessage(t("Link to the commercetools catalog configuration page: @link", [
'@link' => Link::fromTextAndUrl(
t('Product Catalog'),
Url::fromRoute('commercetools_content.settings')
)->toString(),
]));
}
