function system_theme
Same name in other branches
- 7.x modules/system/system.module \system_theme()
- 9 core/modules/system/system.module \system_theme()
- 8.9.x core/modules/system/system.module \system_theme()
Implements hook_theme().
File
-
core/
modules/ system/ system.module, line 164
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,
],
],
'system_security_advisories_fetch_error_message' => [
'file' => 'system.theme.inc',
'variables' => [
'error_message' => [],
],
],
'entity_page_title' => [
'variables' => [
'attributes' => [],
'title' => NULL,
'entity' => NULL,
'view_mode' => NULL,
],
],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.