You are here

public static function Registrants::ajaxElementRoot in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Element/Registrants.php \Drupal\rng\Element\Registrants::ajaxElementRoot()
  2. 3.x src/Element/Registrants.php \Drupal\rng\Element\Registrants::ajaxElementRoot()

Ajax callback to return the entire element.

Parameters

array $form: The complete form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The entire element sub-form.

File

src/Element/Registrants.php, line 799

Class

Registrants
Provides a form element for a registrant and person association.

Namespace

Drupal\rng\Element

Code

public static function ajaxElementRoot(array $form, FormStateInterface $form_state) {
  return RegistrantsElement::findElement($form, $form_state);
}