You are here

function system_theme in Drupal 8

Same name and namespace in other branches
  1. 6 modules/system/system.module \system_theme()
  2. 7 modules/system/system.module \system_theme()
  3. 9 core/modules/system/system.module \system_theme()

Implements hook_theme().

File

core/modules/system/system.module, line 185
Configuration system that lets administrators modify the workings of the site.

Code

function system_theme() {
  return array_merge(drupal_common_theme(), [
    // Normally theme suggestion templates are only picked up when they are in
    // themes. We explicitly define theme suggestions here so that the block
    // templates in core/modules/system/templates are picked up.
    'block__system_branding_block' => [
      'render element' => 'elements',
      'base hook' => 'block',
    ],
    'block__system_messages_block' => [
      'base hook' => 'block',
    ],
    'block__system_menu_block' => [
      'render element' => 'elements',
      'base hook' => 'block',
    ],
    'system_themes_page' => [
      'variables' => [
        'theme_groups' => [],
        'theme_group_titles' => [],
      ],
      'file' => 'system.admin.inc',
    ],
    'system_config_form' => [
      'render element' => 'form',
    ],
    'confirm_form' => [
      'render element' => 'form',
    ],
    'system_modules_details' => [
      'render element' => 'form',
      'file' => 'system.admin.inc',
    ],
    'system_modules_uninstall' => [
      'render element' => 'form',
      'file' => 'system.admin.inc',
    ],
    'status_report_page' => [
      'variables' => [
        'counters' => [],
        'general_info' => [],
        'requirements' => NULL,
      ],
    ],
    'status_report' => [
      'variables' => [
        'grouped_requirements' => NULL,
        'requirements' => NULL,
      ],
    ],
    'status_report_grouped' => [
      'variables' => [
        'grouped_requirements' => NULL,
        'requirements' => NULL,
      ],
    ],
    'status_report_counter' => [
      'variables' => [
        'amount' => NULL,
        'text' => NULL,
        'severity' => NULL,
      ],
    ],
    'status_report_general_info' => [
      'variables' => [
        'drupal' => [],
        'cron' => [],
        'database_system' => [],
        'database_system_version' => [],
        'php' => [],
        'php_memory_limit' => [],
        'webserver' => [],
      ],
    ],
    'admin_page' => [
      'variables' => [
        'blocks' => NULL,
      ],
      'file' => 'system.admin.inc',
    ],
    'admin_block' => [
      'variables' => [
        'block' => NULL,
        'attributes' => [],
      ],
      'file' => 'system.admin.inc',
    ],
    'admin_block_content' => [
      'variables' => [
        'content' => NULL,
      ],
      'file' => 'system.admin.inc',
    ],
    'system_admin_index' => [
      'variables' => [
        'menu_items' => NULL,
      ],
      'file' => 'system.admin.inc',
    ],
    'entity_add_list' => [
      'variables' => [
        'bundles' => [],
        'add_bundle_message' => NULL,
      ],
      'template' => 'entity-add-list',
    ],
    'off_canvas_page_wrapper' => [
      'variables' => [
        'children' => NULL,
      ],
    ],
  ]);
}