You are here

public function GridStackAdmin::closingForm in GridStack 8.2

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

Returns the closing ending form elements.

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

File

src/Form/GridStackAdmin.php, line 189

Class

GridStackAdmin
Provides reusable admin functions or form elements.

Namespace

Drupal\gridstack\Form

Code

public function closingForm(array &$form, $definition = []) {
  if (!isset($form['cache'])) {
    $this->blazyAdmin
      ->closingForm($form, $definition);
  }
  if (isset($form['cache'])) {
    $form['cache']['#weight'] = empty($definition['_views']) ? -40 : -22;
  }
  $form['#attached']['library'][] = 'gridstack/admin';
}