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

Breadcrumb

  1. Drupal Core 11.1.x

Form.php

Same filename in this branch
  1. 11.1.x vendor/symfony/dom-crawler/Form.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/Form.php

View source
<?php

namespace Drupal\Core\Render\Element;

use Drupal\Core\Render\Attribute\RenderElement;

/**
 * Provides a render element for a form.
 */
class Form extends RenderElementBase {
    
    /**
     * {@inheritdoc}
     */
    public function getInfo() {
        return [
            '#method' => 'post',
            '#theme_wrappers' => [
                'form',
            ],
        ];
    }

}

Classes

Title Deprecated Summary
Form Provides a render element for a form.

API Navigation

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