Commit 8f6133bf authored by Thomas Robey's avatar Thomas Robey Committed by Damien McKenna
Browse files

Issue #2930291 by dobe, trobey, DamienMcKenna, sylus: Expand all text fields...

Issue #2930291 by dobe, trobey, DamienMcKenna, sylus: Expand all text fields to allow 1,024 characters.
parent 938baafc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
#3199122 by DamienMcKenna, thejimbirch: Fix compatibility with Drupal 9.
#3199060 by Santhosh-Kumar-Rengasamy, DamienMcKenna: Custom Migration dependency
  issue for d7 migrate process plugin.
#2930291 by dobe, trobey, DamienMcKenna, sylus: Expand all text fields to allow
  1,024 characters.


Metatag 8.x-1.15, 2020-12-05
+1 −10
Original line number Diff line number Diff line
@@ -19,14 +19,5 @@ namespace Drupal\metatag\Plugin\metatag\Tag;
 * )
 */
class Description extends MetaNameBase {

  /**
   * {@inheritdoc}
   */
  public function form(array $element = []) {
    $form = parent::form($element);
    $form['#maxlength'] = 320;
    return $form;
  }

  // Nothing here yet. Just a placeholder class for a plugin.
}
+1 −1
Original line number Diff line number Diff line
@@ -265,7 +265,7 @@ abstract class MetaNameBase extends PluginBase {
      '#type' => $this->isLong() ? 'textarea' : 'textfield',
      '#title' => $this->label(),
      '#default_value' => $this->value(),
      '#maxlength' => 255,
      '#maxlength' => 1024,
      '#required' => isset($element['#required']) ? $element['#required'] : FALSE,
      '#description' => $this->description(),
      '#element_validate' => [[get_class($this), 'validateTag']],