X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FElement%2FEmail.php;h=84bb35265c34215facefe4c03f5f2430ec562b47;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=dce2a344c4953a45737654dc4e8fa6141534b8e4;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Render/Element/Email.php b/web/core/lib/Drupal/Core/Render/Element/Email.php index dce2a344c..84bb35265 100644 --- a/web/core/lib/Drupal/Core/Render/Element/Email.php +++ b/web/core/lib/Drupal/Core/Render/Element/Email.php @@ -11,12 +11,14 @@ use Drupal\Core\Render\Element; * Properties: * - #default_value: An RFC-compliant email address. * - #size: The size of the input element in characters. + * - #pattern: A string for the native HTML5 pattern attribute. * * Example usage: * @code * $form['email'] = array( * '#type' => 'email', * '#title' => $this->t('Email'), + * '#pattern' => '*@example.com', * ); * @end *