function file_theme

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

Implements hook_theme().

File

core/modules/file/file.module, line 376

Code

function file_theme() {
    return [
        // From file.module.
'file_link' => [
            'variables' => [
                'file' => NULL,
                'description' => NULL,
                'attributes' => [],
            ],
        ],
        'file_managed_file' => [
            'render element' => 'element',
        ],
        'file_audio' => [
            'variables' => [
                'files' => [],
                'attributes' => NULL,
            ],
        ],
        'file_video' => [
            'variables' => [
                'files' => [],
                'attributes' => NULL,
            ],
        ],
        'file_widget_multiple' => [
            'render element' => 'element',
        ],
        'file_upload_help' => [
            'variables' => [
                'description' => NULL,
                'upload_validators' => NULL,
                'cardinality' => NULL,
            ],
        ],
    ];
}

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