public function SettingsForm::buildForm in Advanced CSS/JS Aggregation 8.2
Same name in this branch
- 8.2 src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::buildForm()
- 8.2 advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::buildForm()
- 8.2 advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::buildForm()
- 8.2 advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::buildForm()
- 8.2 advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::buildForm()
- 8.2 advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::buildForm()
- 8.2 advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::buildForm()
Same name and namespace in other branches
- 8.4 advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::buildForm()
- 8.3 advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\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 ConfigFormBase::buildForm
File
- advagg_ext_minify/
src/ Form/ SettingsForm.php, line 76
Class
- SettingsForm
- Configure advagg_ext_minify settings for this site.
Namespace
Drupal\advagg_ext_minify\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = [];
// CSS command line.
$this
->generateForm($form, [
'css',
$this
->t('CSS'),
]);
// JS command line.
$this
->generateForm($form, [
'js',
$this
->t('JavaScript'),
]);
return parent::buildForm($form, $form_state);
}