You are here

public function GridStackAdmin::getLayoutOptions in GridStack 8.2

Same name and namespace in other branches
  1. 8 src/Form/GridStackAdmin.php \Drupal\gridstack\Form\GridStackAdmin::getLayoutOptions()

Returns default layout options for the core Image, or Views.

1 call to GridStackAdmin::getLayoutOptions()
GridStackAdmin::buildSettingsForm in src/Form/GridStackAdmin.php
Returns all settings form elements.

File

src/Form/GridStackAdmin.php, line 232

Class

GridStackAdmin
Provides reusable admin functions or form elements.

Namespace

Drupal\gridstack\Form

Code

public function getLayoutOptions() {
  return [
    'bottom' => $this
      ->t('Caption bottom'),
    'center' => $this
      ->t('Caption center'),
    'top' => $this
      ->t('Caption top'),
  ];
}