Skip to content
Snippets Groups Projects

Issue #3479459 by mably: Drupal 11 compatibility fixes for select_text_value

Files
11
@@ -3,9 +3,9 @@
namespace Drupal\select_text_value\Plugin\Field\FieldWidget;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\select_text_value\WidgetHelper;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\select_text_value\WidgetHelper;
use Drupal\text\Plugin\Field\FieldWidget\TextareaWidget;
use Symfony\Component\Validator\ConstraintViolationInterface;
@@ -25,7 +25,7 @@ class SelectFormattedTextareaWidget extends TextareaWidget {
/**
* Common functionality shared between all widgets.
*
* @var WidgetHelper
* @var \Drupal\select_text_value\WidgetHelper
*/
protected $helper;
@@ -95,6 +95,7 @@ class SelectFormattedTextareaWidget extends TextareaWidget {
/**
* {@inheritdoc}
*/
// phpcs:ignore Generic.CodeAnalysis.UselessOverridingMethod.Found, Drupal.Commenting.FunctionComment.Missing
public function errorElement(array $element, ConstraintViolationInterface $violation, array $form, FormStateInterface $form_state) {
return parent::errorElement($element, $violation, $form, $form_state);
}
Loading