Search for widget

  1. Search 7.x for widget
  2. Search 9.5.x for widget
  3. Search 8.9.x for widget
  4. Search 11.x for widget
  5. Search main for widget
  6. Other projects
Title Object type File name Summary
TextfieldWidget class core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php Plugin implementation of the 'text_textfield' widget.
TextfieldWidget.php file core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php
TextfieldWidget::errorElement function core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php Assigns a field-level validation error to the right widget sub-element.
TextfieldWidget::formElement function core/modules/text/src/Plugin/Field/FieldWidget/TextfieldWidget.php Returns the form for a single field widget.
TimestampDatetimeWidget class core/lib/Drupal/Core/Datetime/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php Plugin implementation of the 'datetime timestamp' widget.
TimestampDatetimeWidget.php file core/lib/Drupal/Core/Datetime/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php
TimestampDatetimeWidget::formElement function core/lib/Drupal/Core/Datetime/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php Returns the form for a single field widget.
TimestampDatetimeWidget::massageFormValues function core/lib/Drupal/Core/Datetime/Plugin/Field/FieldWidget/TimestampDatetimeWidget.php Massages the form values into the format expected for field values.
TimestampTest::testWidget function core/tests/Drupal/FunctionalTests/Datetime/TimestampTest.php Tests the "datetime_timestamp" widget.
umami_preprocess_image_widget function core/profiles/demo_umami/themes/umami/umami.theme Implements hook_preprocess_image_widget().
UriWidget class core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php Plugin implementation of the 'uri' widget.
UriWidget.php file core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php
UriWidget::defaultSettings function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php Defines the default settings for this plugin.
UriWidget::formElement function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php Returns the form for a single field widget.
UriWidget::settingsForm function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php Returns a form to configure settings for the widget.
UriWidget::settingsSummary function core/lib/Drupal/Core/Field/Plugin/Field/FieldWidget/UriWidget.php Returns a short summary for the current widget settings.
ViewExecutable::$exposed_widgets property core/modules/views/src/ViewExecutable.php The render array for the exposed form.
WidgetAccessTest class core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php Tests the media library UI access.
WidgetAccessTest.php file core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php
WidgetAccessTest::$defaultTheme property core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php The theme to install as the default for testing.
WidgetAccessTest::testRequiredFieldNoAccess function core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php Tests the widget with a required field that the user can't access.
WidgetAccessTest::testWidgetAccess function core/modules/media_library/tests/src/FunctionalJavascript/WidgetAccessTest.php Tests that the widget access works as expected.
WidgetAnonymousTest class core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php Tests that the widget works as expected for anonymous users.
WidgetAnonymousTest.php file core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php
WidgetAnonymousTest::$defaultTheme property core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php The theme to install as the default for testing.
WidgetAnonymousTest::setUp function core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php
WidgetAnonymousTest::testWidgetAnonymous function core/modules/media_library/tests/src/FunctionalJavascript/WidgetAnonymousTest.php Tests that the widget works as expected for anonymous users.
WidgetBase class core/lib/Drupal/Core/Field/WidgetBase.php Base class for 'Field widget' plugin implementations.
WidgetBase.php file core/lib/Drupal/Core/Field/WidgetBase.php
WidgetBase::$fieldDefinition property core/lib/Drupal/Core/Field/WidgetBase.php The field definition.
WidgetBase::$settings property core/lib/Drupal/Core/Field/WidgetBase.php The widget settings.
WidgetBase::addMoreAjax function core/lib/Drupal/Core/Field/WidgetBase.php Ajax callback for the "Add another item" button.
WidgetBase::addMoreSubmit function core/lib/Drupal/Core/Field/WidgetBase.php Submission handler for the "Add another item" button.
WidgetBase::afterBuild function core/lib/Drupal/Core/Field/WidgetBase.php After-build handler for field elements in a form.
WidgetBase::create function core/lib/Drupal/Core/Field/WidgetBase.php Creates an instance of the plugin.
WidgetBase::deleteAjax function core/lib/Drupal/Core/Field/WidgetBase.php Ajax refresh callback for the "Remove" button.
WidgetBase::deleteSubmit function core/lib/Drupal/Core/Field/WidgetBase.php Ajax submit callback for the "Remove" button.
WidgetBase::errorElement function core/lib/Drupal/Core/Field/WidgetBase.php Assigns a field-level validation error to the right widget sub-element.
WidgetBase::extractFormValues function core/lib/Drupal/Core/Field/WidgetBase.php Extracts field values from submitted form values.
WidgetBase::flagErrors function core/lib/Drupal/Core/Field/WidgetBase.php Reports field-level validation errors against actual form elements.
WidgetBase::form function core/lib/Drupal/Core/Field/WidgetBase.php Creates a form element for a field.
WidgetBase::formMultipleElements function core/lib/Drupal/Core/Field/WidgetBase.php Special handling to create form elements for multiple values.
WidgetBase::formSingleElement function core/lib/Drupal/Core/Field/WidgetBase.php Generates the form element for a single copy of the widget.
WidgetBase::getFieldSetting function core/lib/Drupal/Core/Field/WidgetBase.php Returns the value of a field setting.
WidgetBase::getFieldSettings function core/lib/Drupal/Core/Field/WidgetBase.php Returns the array of field settings.
WidgetBase::getFilteredDescription function core/lib/Drupal/Core/Field/WidgetBase.php Returns the filtered field description.
WidgetBase::getWidgetState function core/lib/Drupal/Core/Field/WidgetBase.php Retrieves processing information about the widget from $form_state.
WidgetBase::getWidgetStateParents function core/lib/Drupal/Core/Field/WidgetBase.php Returns the location of processing information within $form_state.
WidgetBase::handlesMultipleValues function core/lib/Drupal/Core/Field/WidgetBase.php Returns whether the widget handles multiple values.
WidgetBase::isApplicable function core/lib/Drupal/Core/Field/WidgetBase.php Returns if the widget can be used for the provided field.

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