Form.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/Form.php
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Form.php
  3. 11.x core/lib/Drupal/Core/Render/Element/Form.php
  4. 11.x core/modules/system/tests/modules/router_test_directory/src/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.

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