X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement%2FTel.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement%2FTel.php;h=041f68a6549d6e081ab094b6ba31d76f9d9ed505;hp=9289a1d028ce711b50af325ec196b37504a27bf1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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 *