You are here

public function VarnishPurgerFormBase::buildForm in Varnish purger 8.2

Same name and namespace in other branches
  1. 8 src/Form/VarnishPurgerFormBase.php \Drupal\varnish_purger\Form\VarnishPurgerFormBase::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 PluginConfigFormBase::buildForm

File

src/Form/VarnishPurgerFormBase.php, line 90

Class

VarnishPurgerFormBase
Abstract form base for Varnish based configurable purgers.

Namespace

Drupal\varnish_purger\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $settings = VarnishPurgerSettings::load($this
    ->getId($form_state));
  $form['tabs'] = [
    '#type' => 'vertical_tabs',
    '#weight' => 10,
  ];
  $this
    ->buildFormMetadata($form, $form_state, $settings);
  $this
    ->buildFormRequest($form, $form_state, $settings);
  $this
    ->buildFormHeaders($form, $form_state, $settings);
  $this
    ->buildFormPerformance($form, $form_state, $settings);
  $this
    ->buildFormTokensHelp($form, $form_state, $settings);
  $this
    ->buildFormSuccessResolution($form, $form_state, $settings);
  return parent::buildForm($form, $form_state);
}