X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement%2FTel.php;h=041f68a6549d6e081ab094b6ba31d76f9d9ed505;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=9289a1d028ce711b50af325ec196b37504a27bf1;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Render/Element/Tel.php b/web/core/lib/Drupal/Core/Render/Element/Tel.php index 9289a1d02..041f68a65 100644 --- a/web/core/lib/Drupal/Core/Render/Element/Tel.php +++ b/web/core/lib/Drupal/Core/Render/Element/Tel.php @@ -12,12 +12,14 @@ use Drupal\Core\Render\Element; * * Properties: * - #size: The size of the input element in characters. + * - #pattern: A string for the native HTML5 pattern attribute. * * Usage example: * @code * $form['phone'] = array( * '#type' => 'tel', * '#title' => $this->t('Phone'), + * '#pattern' => '[^\d]*', * ); * @endcode *