You are here

public function CssW3Form::ajaxCheck in Advanced CSS/JS Aggregation 8.3

Same name and namespace in other branches
  1. 8.4 advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()
  2. 8.2 advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::ajaxCheck()

Display validation info via ajax callback.

Parameters

array $form: An associative array containing the structure of the form.

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

File

advagg_validator/src/Form/CssW3Form.php, line 117

Class

CssW3Form
Configure form for W3C validation of CSS files.

Namespace

Drupal\advagg_validator\Form

Code

public function ajaxCheck(array &$form, FormStateInterface $form_state) {
  $dir = $form_state
    ->getTriggeringElement()['#name'];
  return $this
    ->getElement($form, explode('/', $dir))['wrapper'];
}