Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::errorElement().
Overrides WidgetBase::errorElement
File
- drupal/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/widget/TestFieldWidget.php, line 60
- Definition of Drupal\field_test\Plugin\field\widget\TestFieldWidget.
Class
- TestFieldWidget
- Plugin implementation of the 'test_field_widget' widget.
Namespace
Drupal\field_test\Plugin\field\widget
Code
public function errorElement(array $element, array $error, array $form, array &$form_state) {
return $element['value'];
}