Search for formElement

  1. Search 7.x for formElement
  2. Search 8.9.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
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
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
FormElementMaxlengthTest::buildForm function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php
FormElementMaxlengthTest::getFormId function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php
FormElementMaxlengthTest::submitForm function core/modules/system/tests/src/Kernel/Form/FormElementMaxlengthTest.php
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
FormElementsRenderTest class core/modules/system/tests/src/Kernel/Common/FormElementsRenderTest.php Performs integration tests on \Drupal::service('renderer')->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
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 using 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
LanguageSelectWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/LanguageSelectWidget.php
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
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
NumberWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/NumberWidget.php
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
OptionsSelectWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsSelectWidget.php
OptionsWidgetBase::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/OptionsWidgetBase.php
PathWidget::formElement function core/modules/path/src/Plugin/Field/FieldWidget/PathWidget.php
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
StringTextareaWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextareaWidget.php
StringTextfieldWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/StringTextfieldWidget.php
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
TextareaWithSummaryWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
TextfieldWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php

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