Increase url field maxlength

Created on 6 October 2023, about 1 year ago
Updated 9 October 2023, about 1 year ago

Problem/Motivation

Trying to use your module for my custom mapbox style the url won't fit in the field as it has a limitation of 128ch

Proposed resolution

Add '#maxlength' => 255,

$form['source']['url'] = [
  '#type' => 'textfield',
  '#title' => $this->t('Url'),
  '#maxlength' => 255,
  '#required' => TRUE,
  '#description' => $this->t('The url of the layer. For XYZ layers {x}, {y}, and {z} will be replaced with the tile coordinates.'),
  '#default_value' => $this->entity->get('url') ?? '',
];
Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024