public function SettingsForm::buildForm in Media PDF Thumbnail 8.2
Same name and namespace in other branches
- 8 src/Form/SettingsForm.php \Drupal\media_pdf_thumbnail\Form\SettingsForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- src/
Form/ SettingsForm.php, line 52
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\media_pdf_thumbnail\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['submit'] = [
'#type' => 'submit',
'#value' => $this
->t('Regenerate thumbnails'),
'#description' => $this
->t('Regenrate thumbnail images for all medias.'),
];
return $form;
}