theme_page_test.module in Drupal 9
Same filename and directory in other branches
Test module.
File
core/modules/system/tests/modules/theme_page_test/theme_page_test.moduleView source
<?php
/**
* @file
* Test module.
*/
use Drupal\Core\Extension\Extension;
/**
* Implements hook_system_info_alter().
*/
function theme_page_test_system_info_alter(&$info, Extension $file, $type) {
// Make sure that all themes are visible on the Appearance form.
if ($type == 'theme') {
unset($info['hidden']);
}
}
Functions
Name | Description |
---|---|
theme_page_test_system_info_alter | Implements hook_system_info_alter(). |