summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-10-12 13:13:38 (GMT)
committerAlex Pott2016-10-12 13:13:38 (GMT)
commit0a548d182b0d9158f753471dc768d1c7ec13bd4a (patch)
tree628a21fb031795433ed4e4a71356e18d5664f28a
parentd11cc0aa417cdc0e481729cead275f31e3ef4d6c (diff)
Issue #2807823 by fago: Unused variable assignment in formSingleElement()
-rw-r--r--core/lib/Drupal/Core/Field/WidgetBase.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php
index 5f7ce3c..dfb3c08 100644
--- a/core/lib/Drupal/Core/Field/WidgetBase.php
+++ b/core/lib/Drupal/Core/Field/WidgetBase.php
@@ -311,8 +311,6 @@ abstract class WidgetBase extends PluginSettingsBase implements WidgetInterface
* 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.