You are here

public function MediaGallerySettingsForm::buildForm in Media Gallery 8

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 FormInterface::buildForm

File

src/Form/MediaGallerySettingsForm.php, line 23

Class

MediaGallerySettingsForm
Configuration form for a media gallery entity type.

Namespace

Drupal\media_gallery\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['settings'] = [
    '#markup' => $this
      ->t('Settings form for a media gallery entity type.'),
  ];
  $form['actions'] = [
    '#type' => 'actions',
  ];
  $form['actions']['submit'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Save'),
  ];
  return $form;
}