You are here

public function GridStackListBuilder::buildForm in GridStack 8.2

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides DraggableListBuilder::buildForm

File

modules/gridstack_ui/src/Controller/GridStackListBuilder.php, line 191

Class

GridStackListBuilder
Provides a listing of GridStack optionsets.

Namespace

Drupal\gridstack_ui\Controller

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['#attributes']['class'][] = 'blazy';
  $form['#attributes']['data-blazy'] = '';
  return parent::buildForm($form, $form_state);
}