config_install_dependency_test.module

Same filename in other branches
  1. 9 core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module
  2. 8.9.x core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module
  3. 10 core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module

File

core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module

View source
<?php


/**
 * @file
 * Provides hook implementations for testing purposes.
 */
declare (strict_types=1);
use Drupal\Core\Entity\EntityInterface;

/**
 * Implements hook_ENTITY_TYPE_create().
 */
function config_install_dependency_test_config_test_create(EntityInterface $entity) {
    // Add an enforced dependency on this module so that we can test if this is
    // possible during module installation.
    $entity->setEnforcedDependencies([
        'module' => [
            'config_install_dependency_test',
        ],
    ]);
}

Functions

Title Deprecated Summary
config_install_dependency_test_config_test_create Implements hook_ENTITY_TYPE_create().

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