function update_theme

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

Implements hook_theme().

File

core/modules/update/update.module, line 140

Code

function update_theme() {
    return [
        'update_last_check' => [
            'variables' => [
                'last' => 0,
            ],
        ],
        'update_report' => [
            'variables' => [
                'data' => NULL,
            ],
            'file' => 'update.report.inc',
        ],
        'update_project_status' => [
            'variables' => [
                'project' => [],
            ],
            'file' => 'update.report.inc',
        ],
        // We are using template instead of '#type' => 'table' here to keep markup
        // out of preprocess and allow for easier changes to markup.
'update_version' => [
            'variables' => [
                'version' => NULL,
                'title' => NULL,
                'attributes' => [],
            ],
            'file' => 'update.report.inc',
        ],
        'update_fetch_error_message' => [
            'file' => 'update.report.inc',
            'render element' => 'element',
            'variables' => [
                'error_message' => [],
            ],
        ],
    ];
}

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