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

Breadcrumb

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

function Label::getInfo

Overrides ElementInterface::getInfo

File

core/lib/Drupal/Core/Render/Element/Label.php, line 20

Class

Label
Provides a render element for displaying the label for a form element.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    return [
        '#theme' => 'form_element_label',
    ];
}

API Navigation

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