Search for setError

  1. Search 7.x for setError
  2. Search 9.5.x for setError
  3. Search 8.9.x for setError
  4. Search 11.x for setError
  5. Other projects
Title Object type File name Summary
BatchBuilder::setErrorMessage function core/lib/Drupal/Core/Batch/BatchBuilder.php Sets the message to display if an error occurs while processing.
BatchBuilderTest::testSetErrorMessage function core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php Tests setErrorMessage().
FormState::setError function core/lib/Drupal/Core/Form/FormState.php Flags an element as having an error.
FormState::setErrorByName function core/lib/Drupal/Core/Form/FormState.php Files an error against a form element.
FormStateDecoratorBase::setError function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Flags an element as having an error.
FormStateDecoratorBase::setErrorByName function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Files an error against a form element.
FormStateDecoratorBaseTest::testSetError function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setError
FormStateDecoratorBaseTest::testSetErrorByName function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setErrorByName
FormStateInterface::setError function core/lib/Drupal/Core/Form/FormStateInterface.php Flags an element as having an error.
FormStateInterface::setErrorByName function core/lib/Drupal/Core/Form/FormStateInterface.php Files an error against a form element.
FormStateTest::providerTestSetErrorByName function core/tests/Drupal/Tests/Core/Form/FormStateTest.php
FormStateTest::testSetError function core/tests/Drupal/Tests/Core/Form/FormStateTest.php Tests the setError() method.
FormStateTest::testSetErrorByName function core/tests/Drupal/Tests/Core/Form/FormStateTest.php @covers ::setErrorByName
SubformState::setErrorByName function core/lib/Drupal/Core/Form/SubformState.php Files an error against a form element.
SubformStateTest::testSetErrorByName function core/tests/Drupal/Tests/Core/Form/SubformStateTest.php @covers ::setErrorByName

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