Search for errors

  1. Search 7.x for errors
  2. Search 9.5.x for errors
  3. Search 10.3.x for errors
  4. Search 11.x for errors
  5. Other projects
Title Object type File name Summary
BlockUiTest::testBlockValidateErrors function core/modules/block/tests/src/Functional/BlockUiTest.php Tests if validation errors are passed plugin form to the parent form.
ConfigImporter::$errors property core/lib/Drupal/Core/Config/ConfigImporter.php A log of any errors encountered.
ConfigImporter::getErrors function core/lib/Drupal/Core/Config/ConfigImporter.php Returns error messages created while running the import.
ConfigImportUITest::testBatchErrors function core/modules/config/tests/src/Functional/ConfigImportUITest.php Tests that errors set in the batch and on the ConfigImporter are merged.
ContentEntityFormFieldValidationFilteringTest::testFieldWidgetsWithLimitedValidationErrors function core/tests/Drupal/FunctionalTests/Entity/ContentEntityFormFieldValidationFilteringTest.php Tests field widgets with #limit_validation_errors.
CredentialForm::$errors property core/modules/migrate_drupal_ui/src/Form/CredentialForm.php An array of error information.
DateTimePlus::$errors property core/lib/Drupal/Component/Datetime/DateTimePlus.php An array of errors encountered when creating this date.
DateTimePlus::checkErrors function core/lib/Drupal/Component/Datetime/DateTimePlus.php Examines getLastErrors() to see what errors to report.
DateTimePlus::getErrors function core/lib/Drupal/Component/Datetime/DateTimePlus.php Gets error messages.
DateTimePlus::hasErrors function core/lib/Drupal/Component/Datetime/DateTimePlus.php Detects if there were errors in the processing of this date.
ElementTest::testFormElementErrors function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests form element error messages.
EntityFormDisplay::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
EntityFormDisplayInterface::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Display/EntityFormDisplayInterface.php Flags entity validation violations as form errors.
ErrorCollection::$errors property core/modules/jsonapi/src/JsonApiResource/ErrorCollection.php The HTTP exceptions.
errors.inc file core/includes/errors.inc Functions for error handling.
ErrorServiceTestServiceProvider class core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
ErrorServiceTestServiceProvider.php file core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php
ErrorServiceTestServiceProvider::$containerBuilder property core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php The in-situ container builder.
ErrorServiceTestServiceProvider::alter function core/modules/system/tests/modules/error_service_test/src/ErrorServiceTestServiceProvider.php Modifies existing service definitions.
ExposedFormUITest::$groupFormUiErrors property core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php Array of error message strings raised by the grouped form.
ExposedFormUITest::assertNoGroupedFilterErrors function core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php Asserts that there are no Grouped Filters errors.
ExposedFormUITest::testGroupedFilterAdminUiErrors function core/modules/views_ui/tests/src/Functional/ExposedFormUITest.php
FieldFormValidationErrorsCommand class core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php AJAX command to indicate a field form was attempted to be saved but failed
validation and pass the validation errors.
FieldFormValidationErrorsCommand.php file core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php
FieldFormValidationErrorsCommand::__construct function core/modules/quickedit/src/Ajax/FieldFormValidationErrorsCommand.php Constructs a FieldFormValidationErrorsCommand object.
FieldWidgetConstraintValidatorTest::getErrorsForEntity function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Gets the form errors for a given entity.
FileWidget::flagErrors function core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php Reports field-level validation errors against actual form elements.
FormErrorHandler::handleFormErrors function core/lib/Drupal/Core/Form/FormErrorHandler.php
FormErrorHandler::setElementErrorsFromFormState function core/lib/Drupal/Core/Form/FormErrorHandler.php Stores errors and a list of child element errors directly on each element.
FormErrorHandlerFileUploadTest::testFileUploadErrors function core/modules/inline_form_errors/tests/src/Functional/FormErrorHandlerFileUploadTest.php Tests that the required field error is displayed as inline error message.
FormErrorHandlerInterface::handleFormErrors function core/lib/Drupal/Core/Form/FormErrorHandlerInterface.php Handles form errors after form validation.
FormErrorHandlerQuickEditTest::testDisabledInlineFormErrors function core/modules/inline_form_errors/tests/src/FunctionalJavascript/FormErrorHandlerQuickEditTest.php Tests that the inline form errors are not visible for Quick Edit forms.
FormErrorHandlerTest::testSetElementErrorsFromFormState function core/tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php @covers ::handleFormErrors[[api-linebreak]]
@covers ::setElementErrorsFromFormState[[api-linebreak]]
FormState::$anyErrors property core/lib/Drupal/Core/Form/FormState.php Tracks if any errors have been set on any form.
FormState::$errors property core/lib/Drupal/Core/Form/FormState.php Contains errors for this form.
FormState::$limit_validation_errors property core/lib/Drupal/Core/Form/FormState.php Stores which errors should be limited during validation.
FormState::clearErrors function core/lib/Drupal/Core/Form/FormState.php
FormState::getErrors function core/lib/Drupal/Core/Form/FormState.php
FormState::getLimitValidationErrors function core/lib/Drupal/Core/Form/FormState.php
FormState::hasAnyErrors function core/lib/Drupal/Core/Form/FormState.php
FormState::setAnyErrors function core/lib/Drupal/Core/Form/FormState.php Sets the global status of errors.
FormState::setLimitValidationErrors function core/lib/Drupal/Core/Form/FormState.php
FormStateDecoratorBase::clearErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
FormStateDecoratorBase::getErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
FormStateDecoratorBase::getLimitValidationErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
FormStateDecoratorBase::hasAnyErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
FormStateDecoratorBase::setLimitValidationErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php
FormStateDecoratorBaseTest::providerLimitValidationErrors function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php Provides data to self::testGetLimitValidationErrors() and self::testGetLimitValidationErrors().
FormStateDecoratorBaseTest::testClearErrors function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::clearErrors[[api-linebreak]]
FormStateDecoratorBaseTest::testGetErrors function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::getErrors[[api-linebreak]]

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