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

Breadcrumb

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

function ImageButton::getInfo

Overrides Submit::getInfo

File

core/lib/Drupal/Core/Render/Element/ImageButton.php, line 18

Class

ImageButton
Provides a form element for a submit button with an image.

Namespace

Drupal\Core\Render\Element

Code

public function getInfo() {
    $info = parent::getInfo();
    unset($info['name']);
    return [
        '#return_value' => TRUE,
        '#has_garbage_value' => TRUE,
        '#src' => NULL,
        '#theme_wrappers' => [
            'input__image_button',
        ],
    ] + $info;
}

API Navigation

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