You are here

public function SlickAdmin::gridForm in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::gridForm()
  2. 7.3 src/Form/SlickAdmin.php \Drupal\slick\Form\SlickAdmin::gridForm()

Returns re-usable grid elements across Slick field formatter and Views.

1 call to SlickAdmin::gridForm()
SlickAdmin::buildSettingsForm in src/Form/SlickAdmin.php
Returns the main form elements.

File

src/Form/SlickAdmin.php, line 315

Class

SlickAdmin
Provides resusable admin functions, or form elements.

Namespace

Drupal\slick\Form

Code

public function gridForm(array &$form, $definition = []) {
  if (!isset($form['grid'])) {
    $this->blazyAdmin
      ->gridForm($form, $definition);
  }
  $header = $this
    ->t('Group individual item as block grid?<small>An older alternative to core <strong>Rows</strong> option. Only works if the total items &gt; <strong>Visible slides</strong>. <br />block grid != slidesToShow option, yet both can work in tandem.<br />block grid = Rows option, yet the first is module feature, the later core.</small>');
  $form['grid_header']['#markup'] = '<h3 class="form__title form__title--grid">' . $header . '</h3>';
  $form['grid']['#description'] = $this
    ->t('The amount of block grid columns for large monitors 64.063em - 90em. <br /><strong>Requires</strong>:<ol><li>Visible items,</li><li>Skin Grid for starter,</li><li>A reasonable amount of contents,</li><li>Optionset with Rows and slidesPerRow = 1.</li></ol>This is module feature, older than core Rows, and offers more flexibility. Leave empty to DIY, or to not build grids.');
}