You are here

public function Cookie::buildConfigurationForm in Pardot Integration 2.x

File

src/Plugin/PardotFormMapFormatterPlugin/Cookie.php, line 66

Class

Cookie
Plugin to capture browser cookies and send them to pardot.

Namespace

Drupal\pardot\Plugin\PardotFormMapFormatterPlugin

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form['cookie_name'] = [
    '#type' => 'textfield',
    '#title' => 'Cookie Name',
    '#default_value' => $this->configuration['cookie_name'],
    '#description' => $this
      ->t('Enter the name of the cookie.'),
    '#size' => 65,
    '#maxlength' => 1280,
    '#required' => TRUE,
  ];
  return $form;
}