function field_ui_theme

Same name in other branches
  1. 7.x modules/field_ui/field_ui.module \field_ui_theme()
  2. 9 core/modules/field_ui/field_ui.module \field_ui_theme()
  3. 8.9.x core/modules/field_ui/field_ui.module \field_ui_theme()
  4. 11.x core/modules/field_ui/field_ui.module \field_ui_theme()

Implements hook_theme().

File

core/modules/field_ui/field_ui.module, line 55

Code

function field_ui_theme() {
    return [
        'field_ui_table' => [
            'variables' => [
                'header' => NULL,
                'rows' => NULL,
                'footer' => NULL,
                'attributes' => [],
                'caption' => NULL,
                'colgroups' => [],
                'sticky' => FALSE,
                'responsive' => TRUE,
                'empty' => '',
            ],
        ],
        // Provide a dedicated template for new storage options as their styling
        // is quite different from a typical form element, so it works best to not
        // include default form element classes.
'form_element__new_storage_type' => [
            'base hook' => 'form_element',
            'render element' => 'element',
        ],
    ];
}

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