projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Render
/
Element
/
Tel.php
diff --git
a/web/core/lib/Drupal/Core/Render/Element/Tel.php
b/web/core/lib/Drupal/Core/Render/Element/Tel.php
index 9289a1d028ce711b50af325ec196b37504a27bf1..041f68a6549d6e081ab094b6ba31d76f9d9ed505 100644
(file)
--- 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.
*
* 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'),
*
* Usage example:
* @code
* $form['phone'] = array(
* '#type' => 'tel',
* '#title' => $this->t('Phone'),
+ * '#pattern' => '[^\d]*',
* );
* @endcode
*
* );
* @endcode
*