You are here

public function ApiSettingsForm::buildForm in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/ApiSettingsForm.php \Drupal\fb_instant_articles\Form\ApiSettingsForm::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/ApiSettingsForm.php, line 69

Class

ApiSettingsForm
Facebook Instant Articles API form.

Namespace

Drupal\fb_instant_articles\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {

  // Generate the module activation section of the settings form.
  $form = $this
    ->moduleActivationBuildForm($form, $form_state);

  // Add the publishing settings sub-section.
  $form = $this
    ->moduleConfigPublishingBuildForm($form, $form_state);
  return parent::buildForm($form, $form_state);
}