You are here

protected function GridStackViews::buildSettingsForm in GridStack 8.2

Build the Gridstack settings form.

1 call to GridStackViews::buildSettingsForm()
GridStackViews::buildOptionsForm in src/Plugin/views/style/GridStackViews.php
Overrides parent::buildOptionsForm().

File

src/Plugin/views/style/GridStackViews.php, line 86

Class

GridStackViews
GridStack style plugin.

Namespace

Drupal\gridstack\Plugin\views\style

Code

protected function buildSettingsForm(&$form, &$definition) {
  $count = empty($definition['captions']) ? 0 : count($definition['captions']);
  $definition['captions_count'] = $count;
  $definition['stamps'] = $this
    ->getViewsAsOptions('html_list');
  $this
    ->admin()
    ->buildSettingsForm($form, $definition);
  $title = '<p class="form__header form__title">';
  $title .= $this
    ->t('Check Vanilla if using content/custom markups, not fields. <small>See it under <strong>Format > Show</strong> section. Otherwise Gridstack markups apply which require some fields added below.</small>');
  $title .= '</p>';
  $form['opening']['#markup'] .= $title;
  $form['image']['#description'] .= ' ' . $this
    ->t('Be sure to UNCHECK "Use field template" (by default already UNCHECKED) to have it work for Blazy lazyloading. Use Blazy formatters for relevant features such as Colorbox/Photobox/Photoswipe, etc., or multimedia supports.');
}