Same name in other branches
- 5.0.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::submitCheckAll()
- 8.x-2.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::submitCheckAll()
- 8.x-3.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::submitCheckAll()
- 8.x-4.x advagg_validator/src/Form/CssW3Form.php \Drupal\advagg_validator\Form\CssW3Form::submitCheckAll()
Fichier
-
advagg_validator/
src/ Form/ CssW3Form.php, line 71
Classe
- CssW3Form
- Configure form for W3C validation of CSS files.
Namespace
Drupal\advagg_validator\FormCode
public function submitCheckAll(array &$form, FormStateInterface $form_state) {
$dir = $form_state->getTriggeringElement()['#name'];
$files = [];
foreach ($form_state->getValues() as $key => $value) {
if (strpos($key, 'hidden') === FALSE || strpos($value, $dir) === FALSE || $dir === '.' && substr_count($value, '/') > 0) {
continue;
}
$files[] = $value;
}
// Check list.
$info = $this->testFiles($files);
$info = $this->hideGoodFiles($info);
$output = [
'#theme' => 'item_list',
'#items' => $info,
];
$this->messenger()
->addMessage($this->renderer
->render($output));
}