You are here

protected function Form::massageRowClasses in GridStack 8.2

Returns merged classes for .row only.

1 call to Form::massageRowClasses()
Form::validateConfigurationForm in src/Plugin/gridstack/stylizer/Form.php

File

src/Plugin/gridstack/stylizer/Form.php, line 193

Class

Form
Provides the form elements.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

protected function massageRowClasses($name, array $settings, FormStateInterface $form_state) {
  $wrapper_class = isset($settings['row_classes']) ? $settings['row_classes'] : '';
  $selected_classes = isset($settings['preset_row_classes']) ? $settings['preset_row_classes'] : [];
  $classes = [];
  if ($classes = $this->manager
    ->engineManager()
    ->getClassOptions('row')) {
    $classes = array_combine($classes, $classes);
  }
  $this
    ->massageAllClasses($form_state, $name, $wrapper_class, $selected_classes, $classes);
}