Commit b9ffa903 authored by Ivan Zugec's avatar Ivan Zugec Committed by targoo

Issue #2642712 by Ivan Zugec: Notice: Undefined index: #required

parent 17ed3c7d
...@@ -82,7 +82,6 @@ class ColorFieldWidgetDefault extends WidgetBase { ...@@ -82,7 +82,6 @@ class ColorFieldWidgetDefault extends WidgetBase {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) { public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
$element = [];
$label = $this->fieldDefinition->getLabel(); $label = $this->fieldDefinition->getLabel();
......
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