Search for errors

  1. Search 7.x for errors
  2. Search 9.5.x for errors
  3. Search 8.9.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.
CKEditor5TestBase::assertNoRealtimeValidationErrors function core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php Checks that no real-time validation errors are present.
ConfigEntityValidationTestBase::assertValidationErrors function core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php Asserts a set of validation errors is raised when the entity is validated.
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 Flags entity validation violations as form errors.
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.
ErrorTestController::generateFatalErrors function core/modules/system/tests/modules/error_test/src/Controller/ErrorTestController.php Generate fatal errors to test the error handler.
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
FieldWidgetConstraintValidatorTest::getErrorsForEntity function core/tests/Drupal/KernelTests/Core/Entity/FieldWidgetConstraintValidatorTest.php Gets the form errors for a given entity.
FileValidationException::$errors property core/modules/file/src/Upload/FileValidationException.php The validation errors.
FileValidationException::getErrors function core/modules/file/src/Upload/FileValidationException.php Gets the errors.
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.
FormErrorHandlerTest::testSetElementErrorsFromFormState function core/tests/Drupal/Tests/Core/Form/FormErrorHandlerTest.php @covers ::handleFormErrors
@covers ::setElementErrorsFromFormState
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
FormState::clearErrors function core/lib/Drupal/Core/Form/FormState.php Clears all errors against all form elements made by self::setErrorByName().
FormState::getErrors function core/lib/Drupal/Core/Form/FormState.php Returns an associative array of all errors.
FormState::getLimitValidationErrors function core/lib/Drupal/Core/Form/FormState.php Retrieves the limited validation error sections.
FormState::hasAnyErrors function core/lib/Drupal/Core/Form/FormState.php Determines if any forms have any errors.
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 Sets the limited validation error sections.
FormStateDecoratorBase::clearErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Clears all errors against all form elements made by self::setErrorByName().
FormStateDecoratorBase::getErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Returns an associative array of all errors.
FormStateDecoratorBase::getLimitValidationErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Retrieves the limited validation error sections.
FormStateDecoratorBase::hasAnyErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Determines if any forms have any errors.
FormStateDecoratorBase::setLimitValidationErrors function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Sets the limited validation error sections.
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

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