metatag.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/metatag.module b/metatag.module index ce1c1dd..4a83965 100644 --- a/metatag.module +++ b/metatag.module @@ -10,6 +10,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; use Drupal\Core\Field\BaseFieldDefinition; +use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Url; @@ -535,7 +536,7 @@ function metatag_entity_base_field_info(EntityTypeInterface $entity_type) { ->setLabel(t('Metatags normalized')) ->setDescription(t('The meta tags for the entity.')) ->setComputed(TRUE) - ->setCardinality(-1) + ->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED) ->setTranslatable(TRUE); }