Errors when using the Link (with attributes) formatter without Enabled attributes
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3066939. -->
Reported by: [peterlemmens](https://www.drupal.org/user/3254148)
>>>
<p>When using the "Link (with attributes)" formatter on a link field without checking any "Enabled attributes", the following errors occur when saving the entity:</p>
<p><code>Notice: Undefined index: options in Drupal\link_attributes\Plugin\Field\FieldWidget\LinkWithAttributesWidget->Drupal\link_attributes\Plugin\Field\FieldWidget\{closure}() (line 155 of modules/contrib/link_attributes/src/Plugin/Field/FieldWidget/LinkWithAttributesWidget.php).</code></p>
<p><code>Warning: array_filter() expects parameter 1 to be array, null given in Drupal\link_attributes\Plugin\Field\FieldWidget\LinkWithAttributesWidget->Drupal\link_attributes\Plugin\Field\FieldWidget\{closure}() (line 157 of modules/contrib/link_attributes/src/Plugin/Field/FieldWidget/LinkWithAttributesWidget.php).</code></p>
issue