Same name in other branches
  1. 5.0.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()
  2. 6.0.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()
  3. 8.x-2.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()
  4. 8.x-3.x src/Form/InfoForm.php \Drupal\advagg\Form\InfoForm::getFileInfoSubmit()

Display file info in a drupal message.

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

src/Form/InfoForm.php, line 199

Class

InfoForm
View AdvAgg information for this site.

Namespace

Drupal\advagg\Form

Code

public function getFileInfoSubmit(array &$form, FormStateInterface $form_state) {
    $this->messenger()
        ->addMessage($this->getFileInfo($form_state->getValue('filename')));
}