ThemePageTestHooks.php

Same filename and directory in other branches
  1. 11.x core/modules/system/tests/modules/theme_page_test/src/Hook/ThemePageTestHooks.php

Namespace

Drupal\theme_page_test\Hook

File

core/modules/system/tests/modules/theme_page_test/src/Hook/ThemePageTestHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\theme_page_test\Hook;

use Drupal\Core\Extension\Extension;
use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for theme_page_test.
 */
class ThemePageTestHooks {
  
  /**
   * Implements hook_system_info_alter().
   */
  public function systemInfoAlter(&$info, Extension $file, $type) : void {
    // Make sure that all themes are visible on the Appearance form.
    if ($type === 'theme') {
      unset($info['hidden']);
    }
  }

}

Classes

Title Deprecated Summary
ThemePageTestHooks Hook implementations for theme_page_test.

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