test_module_required_by_theme.module

Same filename and directory in other branches
  1. 9 core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module
  2. 8.9.x core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module
  3. 10 core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module

This file provides testing functionality for update.php.

File

core/modules/system/tests/themes/test_theme_depending_on_modules/test_module_required_by_theme/test_module_required_by_theme.module

View source
<?php


/**
 * @file
 * This file provides testing functionality for update.php.
 */
use Drupal\Core\Extension\Extension;

/**
 * Implements hook_system_info_alter().
 */
function test_module_required_by_theme_system_info_alter(array &$info, Extension $file, $type) {
    if ($file->getName() == 'test_theme_depending_on_modules') {
        $new_info = \Drupal::state()->get('test_theme_depending_on_modules.system_info_alter');
        if ($new_info) {
            $info = $new_info + $info;
        }
    }
}

Functions

Title Deprecated Summary
test_module_required_by_theme_system_info_alter Implements hook_system_info_alter().

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