Skip to content
Snippets Groups Projects

Draft: Issue #3331028: Increase or remove default textfield #maxlength=128

@@ -13,9 +13,12 @@ class Textfield extends FormElementBase {
* {@inheritdoc}
*/
public function getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) {
return [
$element = [
'#type' => 'textfield',
] + parent::getTranslationElement($translation_language, $source_config, $translation_config);
// Remove the default core maxlength of 128 characters:
unset($element['#maxlength']);
return $element;
}
}
Loading