EnforcedFormResponseSubscriber::onKernelException

public EnforcedFormResponseSubscriber::onKernelException(GetResponseForExceptionEvent $event) Replaces the response in case an EnforcedResponseException was thrown. File core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php, line 20 Class EnforcedFormResponseSubscriber Handle the EnforcedResponseException and deliver an EnforcedResponse. Namespace Drupal\Core\EventSubscriber Code public function onKernelException(GetResponseForExceptionEvent $event) { if ($response

EnforcedFormResponseSubscriber::getSubscribedEvents

public static EnforcedFormResponseSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $p

EnforcedFormResponseSubscriber

Handle the EnforcedResponseException and deliver an EnforcedResponse. Hierarchy class \Drupal\Core\EventSubscriber\EnforcedFormResponseSubscriber implements EventSubscriberInterface File core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php, line 15 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description EnforcedFormResponseSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants

Email::validateEmail

public static Email::validateEmail(&$element, FormStateInterface $form_state, &$complete_form) Form element validation handler for #type 'email'. Note that #maxlength and #required is validated by _form_validate() already. File core/lib/Drupal/Core/Render/Element/Email.php, line 71 Class Email Provides a form input element for entering an email address. Namespace Drupal\Core\Render\Element Code public static function validateEmail(&$element, FormStateInterface $form_state,

Email::preRenderEmail

public static Email::preRenderEmail($element) Prepares a #type 'email' render element for input.html.twig. Parameters array $element: An associative array containing the properties of the element. Properties used: #title, #value, #description, #size, #maxlength, #placeholder, #required, #attributes. Return value array The $element with prepared variables ready for input.html.twig. File core/lib/Drupal/Core/Render/Element/Email.php, line 91 Class Email Provides a form input element for en

Email::getInfo

public Email::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Email.php, line 43 Class Email Provides a form input element for entering an email address. Namespace Drupal\Core\Render\Element Code

Email::EMAIL_MAX_LENGTH

Defines the max length for an email address The maximum length of an email address is 254 characters. RFC 3696 specifies a total length of 320 characters, but mentions that addresses longer than 256 characters are not normally useful. Erratum 1690 was then released which corrected this value to 254 characters. See also http://tools.ietf.org/html/rfc3696#section-3 http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690 File core/lib/Drupal/Core/Render/Element/Email.php, line 38 Cla

Email

Provides a form input element for entering an email address. Properties: #default_value: An RFC-compliant email address. Example usage: $form['email'] = array( '#type' => 'email', '#title' => $this->t('Email'), ); @end <h3>Plugin annotationh3> @code @FormElement("email") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTr

element_info_property

element_info_property($type, $property_name, $default = NULL) Retrieves a single property for the defined element type. Parameters $type: An element type as defined by an element plugin. $property_name: The property within the element type that should be returned. $default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal::service('element_info')->get

element_info

element_info($type) Retrieves the default properties for the defined element type. Parameters $type: An element type as defined by an element plugin. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal::service('element_info')->getInfo() instead. File core/includes/common.inc, line 1005 Common functions that many Drupal modules will need to reference. Code function element_info($type) { return \Drupal::service('element_info')->getInfo($type); }