X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement%2FPassword.php;h=c40bb4c25abafd6a4ac8a44b2355814b26d78cc9;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=4ba2058397dc01f6c455749c1a8c6b6daa6872ad;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Render/Element/Password.php b/web/core/lib/Drupal/Core/Render/Element/Password.php index 4ba205839..c40bb4c25 100644 --- a/web/core/lib/Drupal/Core/Render/Element/Password.php +++ b/web/core/lib/Drupal/Core/Render/Element/Password.php @@ -10,6 +10,7 @@ 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 @@ -17,6 +18,7 @@ use Drupal\Core\Render\Element; * '#type' => 'password', * '#title' => $this->t('Password'), * '#size' => 25, + * '#pattern' => '[01]+', * ); * @endcode *