You are here

public function SettingsForm::getDetails in Layout Builder Base 8

Function to get the details used for the form.

Return value

array The different details.

1 call to SettingsForm::getDetails()
SettingsForm::buildForm in src/Form/SettingsForm.php
Form constructor.

File

src/Form/SettingsForm.php, line 119

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\layout_builder_base\Form

Code

public function getDetails() {
  $details = [];
  $details['grid'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Grid properties'),
  ];
  $details['background_detail'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Background'),
  ];
  $details['margin'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Margins'),
  ];
  $details['padding'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Paddings'),
  ];
  $details['container'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Container'),
  ];
  $details['styles'] = [
    '#type' => 'details',
    '#title' => $this
      ->t('Styles'),
  ];
  return $details;
}