Commit 0a548d18 authored by alexpott's avatar alexpott

Issue #2807823 by fago: Unused variable assignment in formSingleElement()

parent d11cc0aa
......@@ -311,8 +311,6 @@ public static function addMoreAjax(array $form, FormStateInterface $form_state)
* Generates the form element for a single copy of the widget.
protected function formSingleElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
$entity = $items->getEntity();
$element += array(
'#field_parents' => $form['#parents'],
// Only the first widget should be required.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment