Same name in other branches
- 6.0.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()
- 8.x-2.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()
- 8.x-3.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()
- 8.x-4.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()
Display validation info via ajax callback.
Paramètres
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Fichier
-
advagg_validator/
src/ Form/ CssW3Form.php, line 100
Classe
- CssW3Form
- Configure form for W3C validation of CSS files.
Namespace
Drupal\advagg_validator\FormCode
public function ajaxCheck(array &$form, FormStateInterface $form_state) {
$dir = $form_state->getTriggeringElement()['#name'];
return $this->getElement($form, explode('/', $dir))['wrapper'];
}