Commit 4b0a1636 authored by catch's avatar catch
Browse files

Issue #3478166 by quietone, smustgrave, mstrelan: Add MissingParamType for...

Issue #3478166 by quietone, smustgrave, mstrelan: Add MissingParamType for form, form_state and form_id

(cherry picked from commit dd3beacc)
parent bddfccb8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ public function rebuildForm($form_id, FormStateInterface &$form_state, $old_form
   *   The value must be one of the following:
   *   - The name of a class that implements \Drupal\Core\Form\FormInterface.
   *   - An instance of a class that implements \Drupal\Core\Form\FormInterface.
   * @param $form_state
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form. Most important is the
   *   $form_state->getValues() collection, a tree of data used to simulate the
   *   incoming \Drupal::request()->request information from a user's form
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ public function doSubmitForm(&$form, FormStateInterface &$form_state);
   * Button-specific handlers are checked first. If none exist, the function
   * falls back to form-level handlers.
   *
   * @param $form
   * @param array $form
   *   An associative array containing the structure of the form.
   * @param $form_state
   * @param \Drupal\Core\Form\FormStateInterface $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.
+9 −9
Original line number Diff line number Diff line
@@ -186,13 +186,13 @@ function hook_ajax_render_alter(array &$data) {
 * hook_form_FORM_ID_alter(). So, for each module, the more general hooks are
 * called first followed by the more specific.
 *
 * @param $form
 * @param array $form
 *   Nested array of form elements that comprise the form.
 * @param $form_state
 * @param \Drupal\Core\Form\FormStateInterface $form_state
 *   The current state of the form. The arguments that
 *   \Drupal::formBuilder()->getForm() was originally called with are available
 *   in the array $form_state->getBuildInfo()['args'].
 * @param $form_id
 * @param string $form_id
 *   A string that is the unique ID of the form, set by
 *   Drupal\Core\Form\FormInterface::getFormId().
 *
@@ -235,13 +235,13 @@ function hook_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_stat
 * hook_form_FORM_ID_alter(). So, for each module, the more general hooks are
 * called first followed by the more specific.
 *
 * @param $form
 * @param array $form
 *   Nested array of form elements that comprise the form.
 * @param $form_state
 * @param \Drupal\Core\Form\FormStateInterface $form_state
 *   The current state of the form. The arguments that
 *   \Drupal::formBuilder()->getForm() was originally called with are available
 *   in the array $form_state->getBuildInfo()['args'].
 * @param $form_id
 * @param string $form_id
 *   String representing the name of the form itself. Typically this is the
 *   name of the function that generated the form.
 *
@@ -293,11 +293,11 @@ function hook_form_FORM_ID_alter(&$form, \Drupal\Core\Form\FormStateInterface $f
 * hook_form_FORM_ID_alter(). So, for each module, the more general hooks are
 * called first followed by the more specific.
 *
 * @param $form
 * @param array $form
 *   Nested array of form elements that comprise the form.
 * @param $form_state
 * @param \Drupal\Core\Form\FormStateInterface $form_state
 *   The current state of the form.
 * @param $form_id
 * @param string $form_id
 *   String representing the name of the form itself. Typically this is the
 *   name of the function that generated the form.
 *
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ public static function processPattern(&$element, FormStateInterface $form_state,
   * @param $element
   *   An associative array containing the properties and children of the
   *   generic form element.
   * @param $form_state
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The current state of the form.
   * @param array $complete_form
   *   The complete form structure.
+2 −2
Original line number Diff line number Diff line
@@ -525,9 +525,9 @@
 * Note that the base theme's form alterations will be run before any sub-theme
 * alterations.
 *
 * @param $form
 * @param array $form
 *   Nested array of form elements that comprise the form.
 * @param $form_state
 * @param \Drupal\Core\Form\FormStateInterface $form_state
 *   The current state of the form.
 */
function hook_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
Loading