Search for formElement

  1. Search 7.x for formElement
  2. Search 9.5.x for formElement
  3. Search 10.3.x for formElement
  4. Search 11.x for formElement
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
FormElement class core/lib/Drupal/Core/Render/Element/FormElement.php Provides a base class for form element plugins.
FormElement class core/lib/Drupal/Core/Render/Annotation/FormElement.php Defines a form element plugin annotation object.

All search results

Title Object type File name Summary
FormElementHelperTest::testGetElementTitle function core/tests/Drupal/Tests/Core/Form/FormElementHelperTest.php Tests the getElementTitle() method.
FormElementInlineErrorTest class core/modules/inline_form_errors/tests/src/Kernel/FormElementInlineErrorTest.php Tests messages on form elements.
FormElementInlineErrorTest.php file core/modules/inline_form_errors/tests/src/Kernel/FormElementInlineErrorTest.php
FormElementInlineErrorTest::$modules property core/modules/inline_form_errors/tests/src/Kernel/FormElementInlineErrorTest.php Modules to enable.
FormElementInlineErrorTest::testDisplayErrorMessagesNotInline function core/modules/inline_form_errors/tests/src/Kernel/FormElementInlineErrorTest.php Tests that no inline form errors are shown when disabled for a form.
FormElementInterface interface core/lib/Drupal/Core/Render/Element/FormElementInterface.php Provides an interface for form element plugins.
FormElementInterface.php file core/lib/Drupal/Core/Render/Element/FormElementInterface.php
FormElementInterface::valueCallback function core/lib/Drupal/Core/Render/Element/FormElementInterface.php Determines how user input is mapped to an element's #value property.
FormElementLabelTest class core/modules/system/tests/src/Kernel/Form/FormElementLabelTest.php Tests for form_element_label theme hook.
FormElementLabelTest.php file core/modules/system/tests/src/Kernel/Form/FormElementLabelTest.php
FormElementLabelTest::$modules property core/modules/system/tests/src/Kernel/Form/FormElementLabelTest.php Modules to enable.
FormElementLabelTest::testAttributes function core/modules/system/tests/src/Kernel/Form/FormElementLabelTest.php Ensures that attributes can be placed for form element label.
FormElementMaxlengthTest class core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Tests the maxlength HTML attribute on form elements.
FormElementMaxlengthTest.php file core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php
FormElementMaxlengthTest::$modules property core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Modules to enable.
FormElementMaxlengthTest::buildForm function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Form constructor.
FormElementMaxlengthTest::getFormId function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Returns a unique string identifying the form.
FormElementMaxlengthTest::submitForm function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Form submission handler.
FormElementMaxlengthTest::testAttributes function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Ensures maxlength attribute can be used in compatible elements.
FormElementMaxlengthTest::validateForm function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php Form validation handler.
FormElementsRenderTest class core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Performs integration tests on drupal_render().
FormElementsRenderTest.php file core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php
FormElementsRenderTest::$modules property core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Modules to enable.
FormElementsRenderTest::assertRenderedElement function core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Tests that elements are rendered properly.
FormElementsRenderTest::testDrupalRenderFormElements function core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Tests rendering form elements without passing through
\Drupal::formBuilder()->doBuildForm().
FormTestBase::assertFormElement function core/tests/Drupal/Tests/Core/Form/FormTestBase.php Asserts that the expected form structure is found in a form for a given key.
ImageWidget::formElement function core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php Returns the form for a single field widget.
LanguageSelectWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/LanguageSelectWidget.php Returns the form for a single field widget.
LayoutBuilderWidget::formElement function core/modules/layout_builder/src/Plugin/Field/FieldWidget/LayoutBuilderWidget.php Returns the form for a single field widget.
LinkWidget::formElement function core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php Returns the form for a single field widget.
MediaLibraryInceptionWidget::formElement function core/modules/media_library/tests/modules/media_library_test_widget/src/Plugin/Field/FieldWidget/MediaLibraryInceptionWidget.php Returns the form for a single field widget.
MediaLibraryWidget::formElement function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php Returns the form for a single field widget.
ModerationStateWidget::formElement function core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php Returns the form for a single field widget.
NumberWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/NumberWidget.php Returns the form for a single field widget.
OEmbedWidget::formElement function core/modules/media/src/Plugin/Field/FieldWidget/OEmbedWidget.php Returns the form for a single field widget.
OptionsButtonsWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsButtonsWidget.php Returns the form for a single field widget.
OptionsSelectWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsSelectWidget.php Returns the form for a single field widget.
OptionsWidgetBase::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php Returns the form for a single field widget.
PathWidget::formElement function core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php Returns the form for a single field widget.
PathWidget::validateFormElement function core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php Form element validation handler for URL alias form element.
ShapeOnlyColorEditableWidget::formElement function core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldWidget/ShapeOnlyColorEditableWidget.php Returns the form for a single field widget.
StringTextareaWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php Returns the form for a single field widget.
StringTextfieldWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php Returns the form for a single field widget.
TelephoneDefaultWidget::formElement function core/modules/telephone/src/Plugin/Field/FieldWidget/TelephoneDefaultWidget.php Returns the form for a single field widget.
TermParentsTest::testEditingParentsWithDisabledFormElement function core/modules/taxonomy/tests/src/Functional/TermParentsTest.php Tests specifying parents when creating terms and a disabled parent form.
TestFieldWidget::formElement function core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidget.php Returns the form for a single field widget.
TestFieldWidgetMultiple::formElement function core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php Returns the form for a single field widget.
TextareaWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextareaWidget.php Returns the form for a single field widget.
TextareaWithSummaryWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php Returns the form for a single field widget.
TextfieldWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php Returns the form for a single field widget.

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