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