From d3d91fa1aae6c1110652712724f34d07b50dda17 Mon Sep 17 00:00:00 2001 From: Matthijs Van Assche <26224-Matthijs@users.noreply.drupalcode.org> Date: Thu, 9 Jan 2025 16:22:50 +0000 Subject: [PATCH] Issue #3346504 by matthijs, jastraat, odai atieh, weseze: Add forms allow labels that are too long for the entity field definition --- src/Form/AddSectionToLibraryForm.php | 2 +- src/Form/AddTemplateToLibraryForm.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/AddSectionToLibraryForm.php b/src/Form/AddSectionToLibraryForm.php index a2a3b4a..740ef87 100644 --- a/src/Form/AddSectionToLibraryForm.php +++ b/src/Form/AddSectionToLibraryForm.php @@ -108,7 +108,7 @@ class AddSectionToLibraryForm extends FormBase { $form['label'] = [ '#type' => 'textfield', '#title' => $this->t('Label'), - '#maxlength' => 255, + '#maxlength' => 50, '#default_value' => '', '#required' => TRUE, ]; diff --git a/src/Form/AddTemplateToLibraryForm.php b/src/Form/AddTemplateToLibraryForm.php index 305e809..aa8900f 100644 --- a/src/Form/AddTemplateToLibraryForm.php +++ b/src/Form/AddTemplateToLibraryForm.php @@ -108,7 +108,7 @@ class AddTemplateToLibraryForm extends FormBase { $form['label'] = [ '#type' => 'textfield', '#title' => $this->t('Label'), - '#maxlength' => 255, + '#maxlength' => 50, '#default_value' => '', '#required' => TRUE, ]; -- GitLab