demo_umami_content.install

Same filename in other branches
  1. 9 core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.install
  2. 10 core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.install
  3. 11.x core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.install

Install, update and uninstall functions for the module.

File

core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.install

View source
<?php


/**
 * @file
 * Install, update and uninstall functions for the module.
 */
use Drupal\demo_umami_content\InstallHelper;

/**
 * Implements hook_install().
 */
function demo_umami_content_install($is_syncing) {
    if (!$is_syncing) {
        \Drupal::classResolver(InstallHelper::class)->importContent();
    }
}

/**
 * Implements hook_uninstall().
 */
function demo_umami_content_uninstall($is_syncing) {
    if (!$is_syncing) {
        \Drupal::classResolver(InstallHelper::class)->deleteImportedContent();
    }
}

Functions

Title Deprecated Summary
demo_umami_content_install Implements hook_install().
demo_umami_content_uninstall Implements hook_uninstall().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.