Search for setErrorByName

  1. Search 7.x for setErrorByName
  2. Search 9.5.x for setErrorByName
  3. Search 8.9.x for setErrorByName
  4. Search 10.3.x for setErrorByName
  5. Other projects
Title Object type File name Summary
FormState::setErrorByName function core/lib/Drupal/Core/Form/FormState.php Files an error against a form element.
FormStateDecoratorBase::setErrorByName function core/lib/Drupal/Core/Form/FormStateDecoratorBase.php Files an error against a form element.
FormStateDecoratorBaseTest::testSetErrorByName function core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php @covers ::setErrorByName
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::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.