class Form
Same name in this branch
- main core/modules/system/tests/modules/router_test_directory/src/Form.php \Drupal\router_test\Form
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/router_test_directory/src/Form.php \Drupal\router_test\Form
- 11.x core/lib/Drupal/Core/Render/Element/Form.php \Drupal\Core\Render\Element\Form
- 10 core/lib/Drupal/Core/Render/Element/Form.php \Drupal\Core\Render\Element\Form
- 9 core/lib/Drupal/Core/Render/Element/Form.php \Drupal\Core\Render\Element\Form
- 8.9.x core/lib/Drupal/Core/Render/Element/Form.php \Drupal\Core\Render\Element\Form
Provides a render element for a form.
Attributes
#[RenderElement('form')]
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Render\Element\Form extends \Drupal\Core\Render\Element\RenderElementBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of Form
66 string references to 'Form'
- AjaxFormCacheTest::testFormCacheUsage in core/
tests/ Drupal/ FunctionalJavascriptTests/ Ajax/ AjaxFormCacheTest.php - Tests the usage of form cache for AJAX forms.
- BlockContent::baseFieldDefinitions in core/
modules/ block_content/ src/ Entity/ BlockContent.php - Provides base field definitions for an entity type.
- Ckeditor5Hooks::theme in core/
modules/ ckeditor5/ src/ Hook/ Ckeditor5Hooks.php - Implements hook_theme().
- ClaroVerticalTabsTest::testVerticalTabs in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ ClaroVerticalTabsTest.php - Confirms that Claro can render vertical tabs correctly.
- Comment::baseFieldDefinitions in core/
modules/ comment/ src/ Entity/ Comment.php
4 #type uses of Form
- FormAjaxSubscriberTest::testOnException in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Tests on exception.
- FormAjaxSubscriberTest::testOnExceptionNestedException in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Tests on exception nested exception.
- FormAjaxSubscriberTest::testOnExceptionNewBuildId in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Tests on exception new build id.
- FormAjaxSubscriberTest::testOnExceptionResponseBuilderException in core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php - Tests on exception response builder exception.
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ Form.php, line 10
Namespace
Drupal\Core\Render\ElementView source
class Form extends RenderElementBase {
/**
* {@inheritdoc}
*/
public function getInfo() {
return [
'#method' => 'post',
'#theme_wrappers' => [
'form',
],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.