commerce_demo.module in Commerce Demo 8.2
Same filename and directory in other branches
Provides a demo store for Commerce.
File
commerce_demo.moduleView source
<?php
/**
* @file
* Provides a demo store for Commerce.
*/
/**
* Implements hook_modules_installed().
*/
function commerce_demo_modules_installed($modules) {
if (in_array('commerce_demo', $modules, TRUE) && !\Drupal::isConfigSyncing()) {
$index_storage = \Drupal::entityTypeManager()
->getStorage('search_api_index');
/** @var \Drupal\search_api\IndexInterface $index */
$index = $index_storage
->load('products');
$index
->indexItems();
}
}
Functions
Name | Description |
---|---|
commerce_demo_modules_installed | Implements hook_modules_installed(). |