You are here

public function ConfigurationSendinblueForm::buildForm in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Form/ConfigurationSendinblueForm.php \Drupal\sendinblue\Form\ConfigurationSendinblueForm::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

src/Form/ConfigurationSendinblueForm.php, line 94

Class

ConfigurationSendinblueForm
Parameter Form to login SendinBlue.

Namespace

Drupal\sendinblue\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['access_key'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('API Key'),
    '#required' => TRUE,
    '#attributes' => [
      'placeholder' => $this
        ->t('API Key'),
    ],
    '#size' => 50,
    '#maxlenght' => 100,
  ];
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Login'),
  ];
  return $form;
}