- Issue created by @21kPiyush
- First commit to issue fork.
- Merge request !9The fieldName variable is not required and removing it. → (Open) created by sathishdevan
- Status changed to Needs review
7 months ago 10:18am 13 May 2024
When I edit the node after update it show me
Deprecated function: Creation of dynamic property Drupal\questions_answers\Plugin\Field\FieldWidget\QuestionsAnswersWidget::$fieldName is deprecated in Drupal\questions_answers\Plugin\Field\FieldWidget\QuestionsAnswersWidget->formElement() (line 85 of modules/contrib/questions_answers/src/Plugin/Field/FieldWidget/QuestionsAnswersWidget.php).
this on edit, on line 85 I check
$this->fieldName = $this->fieldDefinition->getName();
this is written once I comment this and clear cache error is gone
so It is fixed or need to change something else
Needs review
1.14
Code