You are here

public static function Registrants::validateMyself in RNG - Events and Registrations 8

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

Validate adding myself sub-form.

Parameters

array $form: The complete form.

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

File

src/Element/Registrants.php, line 736

Class

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

Namespace

Drupal\rng\Element

Code

public static function validateMyself(array &$form, FormStateInterface $form_state) {
  $element = RegistrantsElement::findElement($form, $form_state);
  $utility = new RegistrantsElement($element, $form_state);
  $utility
    ->buildRegistrant(TRUE);
}