drupal_common_theme()
Provides theme registration for themes across .inc files.
File
- core/includes/theme.inc, line 1715
- The theme system, which controls the output of Drupal.
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | function drupal_common_theme() { return array ( // From theme.inc. 'html' => array ( 'render element' => 'html' , ), 'page' => array ( 'render element' => 'page' , ), 'page_title' => array ( 'variables' => array ( 'title' => NULL), ), 'region' => array ( 'render element' => 'elements' , ), 'time' => array ( 'variables' => array ( 'timestamp' => NULL, 'text' => NULL, 'attributes' => array ()), ), 'datetime_form' => array ( 'render element' => 'element' , ), 'datetime_wrapper' => array ( 'render element' => 'element' , ), 'status_messages' => array ( 'variables' => [ 'status_headings' => [], 'message_list' => NULL], ), 'links' => array ( 'variables' => array ( 'links' => array (), 'attributes' => array ( 'class' => array ( 'links' )), 'heading' => array (), 'set_active_class' => FALSE), ), 'dropbutton_wrapper' => array ( 'variables' => array ( 'children' => NULL), ), 'image' => array ( // HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft // allows the alt attribute to be omitted in some cases. Therefore, // default the alt attribute to an empty string, but allow code providing // variables to image.html.twig templates to pass explicit NULL for it to // be omitted. Usually, neither omission nor an empty string satisfies // accessibility requirements, so it is strongly encouraged for code // building variables for image.html.twig templates to pass a meaningful // value for the alt variable. // The title attribute is optional in all cases, so it is omitted by // default. 'variables' => array ( 'uri' => NULL, 'width' => NULL, 'height' => NULL, 'alt' => '' , 'title' => NULL, 'attributes' => array (), 'sizes' => NULL, 'srcset' => array (), 'style_name' => NULL), ), 'breadcrumb' => array ( 'variables' => array ( 'links' => array ()), ), 'table' => array ( 'variables' => array ( 'header' => NULL, 'rows' => NULL, 'footer' => NULL, 'attributes' => array (), 'caption' => NULL, 'colgroups' => array (), 'sticky' => FALSE, 'responsive' => TRUE, 'empty' => '' ), ), 'tablesort_indicator' => array ( 'variables' => array ( 'style' => NULL), ), 'mark' => array ( 'variables' => array ( 'status' => MARK_NEW), ), 'item_list' => array ( 'variables' => array ( 'items' => array (), 'title' => '' , 'list_type' => 'ul' , 'wrapper_attributes' => array (), 'attributes' => array (), 'empty' => NULL, 'context' => array ()), ), 'feed_icon' => array ( 'variables' => array ( 'url' => NULL, 'title' => NULL), ), 'progress_bar' => array ( 'variables' => array ( 'label' => NULL, 'percent' => NULL, 'message' => NULL), ), 'indentation' => array ( 'variables' => array ( 'size' => 1), ), // From theme.maintenance.inc. 'maintenance_page' => array ( 'render element' => 'page' , ), 'install_page' => array ( 'render element' => 'page' , ), 'maintenance_task_list' => array ( 'variables' => array ( 'items' => NULL, 'active' => NULL, 'variant' => NULL), ), 'authorize_report' => array ( 'variables' => [ 'messages' => [], 'attributes' => []], 'includes' => [ 'core/includes/theme.maintenance.inc' ], 'template' => 'authorize-report' , ), // From pager.inc. 'pager' => array ( 'render element' => 'pager' , ), // From menu.inc. 'menu' => array ( 'variables' => array ( 'menu_name' => NULL, 'items' => array (), 'attributes' => array ()), ), 'menu_local_task' => array ( 'render element' => 'element' , ), 'menu_local_action' => array ( 'render element' => 'element' , ), 'menu_local_tasks' => array ( 'variables' => array ( 'primary' => array (), 'secondary' => array ()), ), // From form.inc. 'input' => array ( 'render element' => 'element' , ), 'select' => array ( 'render element' => 'element' , ), 'fieldset' => array ( 'render element' => 'element' , ), 'details' => array ( 'render element' => 'element' , ), 'radios' => array ( 'render element' => 'element' , ), 'checkboxes' => array ( 'render element' => 'element' , ), 'form' => array ( 'render element' => 'element' , ), 'textarea' => array ( 'render element' => 'element' , ), 'form_element' => array ( 'render element' => 'element' , ), 'form_element_label' => array ( 'render element' => 'element' , ), 'vertical_tabs' => array ( 'render element' => 'element' , ), 'container' => array ( 'render element' => 'element' , ), // From field system. 'field' => array ( 'render element' => 'element' , ), 'field_multiple_value_form' => array ( 'render element' => 'element' , ), ); } |
Please login to continue.