diff -u b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php --- b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php +++ b/core/modules/text/src/Plugin/Field/FieldType/TextItem.php @@ -62,7 +62,7 @@ $constraint_values[] = [ 'Length' => [ 'max' => $max_length, - 'maxMessage' => t('%name: the text may not be longer than @max characters.', ['%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length,]), + 'maxMessage' => t('%name: the text may not be longer than @max characters.', ['%name' => $this->getFieldDefinition()->getLabel(), '@max' => $max_length]), ], ]; } @@ -72,7 +72,7 @@ 'format' => [ 'AllowedValues' => [ 'choices' => $formats, - 'choicesMessage' => t('%name: the selected format is not one the allowed formats.', ['%name' => $this->getFieldDefinition()->getLabel(),]) + 'choicesMessage' => t('%name: the selected format is not one the allowed formats.', ['%name' => $this->getFieldDefinition()->getLabel()]), ], ], ];