Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Render / Element / Url.php
index c3574b095ef089d1b9c5b14f58b179555b5934bb..66e2141a894ba2ddd3f60beda59a5d73bdc69443 100644 (file)
@@ -12,6 +12,7 @@ use Drupal\Core\Render\Element;
  * Properties:
  * - #default_value: A valid URL string.
  * - #size: The size of the input element in characters.
+ * - #pattern: A string for the native HTML5 pattern attribute.
  *
  * Usage example:
  * @code
@@ -19,6 +20,7 @@ use Drupal\Core\Render\Element;
  *   '#type' => 'url',
  *   '#title' => $this->t('Home Page'),
  *   '#size' => 30,
+ *   '#pattern' => '*.example.com',
  *   ...
  * );
  * @endcode