PurgerConfigForm.php in Purge 8.3
File
tests/modules/purge_purger_test/src/Form/PurgerConfigForm.php
View source
<?php
namespace Drupal\purge_purger_test\Form;
use Drupal\Core\Form\FormStateInterface;
use Drupal\purge_ui\Form\PurgerConfigFormBase;
class PurgerConfigForm extends PurgerConfigFormBase {
protected function getEditableConfigNames() {
return [];
}
public function getFormId() {
return 'purge_purger_test.purgerconfigform';
}
public function buildForm(array $form, FormStateInterface $form_state) {
$form['textfield'] = [
'#type' => 'textfield',
'#title' => $this
->t('Test'),
'#required' => FALSE,
];
return parent::buildForm($form, $form_state);
}
public function submitFormSuccess(array &$form, FormStateInterface $form_state) {
}
}