Search for formElement

  1. Search 7.x for formElement
  2. Search 9.5.x for formElement
  3. Search 8.9.x for formElement
  4. Search 10.3.x for formElement
  5. Search 11.x for formElement
  6. 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/Attribute/FormElement.php Defines a form element plugin attribute object.
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
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().
FormPreprocess::preprocessFormElement function core/lib/Drupal/Core/Form/FormPreprocess.php Returns HTML for a form element.
FormPreprocess::preprocessFormElementLabel function core/lib/Drupal/Core/Form/FormPreprocess.php Prepares variables for form label templates.
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
InlineFormErrorsThemeHooks::preprocessFormElement function core/modules/inline_form_errors/src/Hook/InlineFormErrorsThemeHooks.php Implements hook_preprocess_HOOK() for form element templates.
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
LayoutForm::handleFormElementsVisibility function core/modules/navigation/src/Form/LayoutForm.php Handles visibility of the form elements based on the edit mode status.
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
MediaLibraryWidget::formElement function core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php
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.
OliveroHooks::preprocessFormElement function core/themes/olivero/src/Hook/OliveroHooks.php Implements hook_preprocess_HOOK() for form-element.
OliveroHooks::preprocessFormElementLabel function core/themes/olivero/src/Hook/OliveroHooks.php Implements hook_preprocess_HOOK() for form-element-label.
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.
PreprocessHooks::formElement function core/themes/admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element.
PreprocessHooks::formElementPassword function core/themes/admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element__password.
PreprocessHooks::formElementPasswordConfirm function core/themes/admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element__password_confirm.
PreprocessHooks::preprocessFormElement function core/themes/default_admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element.
PreprocessHooks::preprocessFormElementPassword function core/themes/default_admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element__password.
PreprocessHooks::preprocessFormElementPasswordConfirm function core/themes/default_admin/src/Hook/PreprocessHooks.php Implements hook_preprocess_HOOK() for form_element__password_confirm.
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

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