You are here

public function GridStackAdmin::mainForm in GridStack 8

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

Returns the main form elements.

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

File

src/Form/GridStackAdmin.php, line 128

Class

GridStackAdmin
Provides resusable admin functions or form elements.

Namespace

Drupal\gridstack\Form

Code

public function mainForm(array &$form, $definition = []) {
  if (!empty($definition['image_style_form'])) {
    $this->blazyAdmin
      ->imageStyleForm($form, $definition);
  }
  if (!empty($definition['media_switch_form'])) {
    $this->blazyAdmin
      ->mediaSwitchForm($form, $definition);
  }
  if (!empty($definition['fieldable_form'])) {
    $this->blazyAdmin
      ->fieldableForm($form, $definition);
  }
  if (!empty($definition['breakpoints'])) {
    $this->blazyAdmin
      ->breakpointsForm($form, $definition);
  }
}