Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateHooks.php

function UpdateHooks::theme

Implements hook_theme().

File

core/modules/update/src/Hook/UpdateHooks.php, line 124

Class

UpdateHooks
Hook implementations for update.

Namespace

Drupal\update\Hook

Code

public function theme() : array {
    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' => [],
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal