#2563639: Global configuration via config entities added the function metatag_get_default_tags(), and modified MetatagFirehose::formElement to use the default tags in a foreach. The problem is that metatag_get_default_tags() can return null and the foreach doesn't check for a null value first, resulting in this warning anywhere a metatags field appears (such as a node edit form):
Warning: Invalid argument supplied for foreach() in Drupal\metatag\Plugin\Field\FieldWidget\MetatagFirehose->formElement() (line 71 of modules/contrib/metatag/src/Plugin/Field/FieldWidget/MetatagFirehose.php)
Patch to follow.
Comments
Comment #2
Dane Powell CreditAttribution: Dane Powell as a volunteer commentedComment #4
Dane Powell CreditAttribution: Dane Powell as a volunteer commentedI'm not sure how this patch could possibly be responsible for the failing test.
Comment #5
DamienMcKennaCommitted. Thanks!