You are here

public function Form::cleanupStyles in GridStack 8.2

Cleans up styles form.

File

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

Class

Form
Provides the form elements.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

public function cleanupStyles(array &$settings = []) {
  $data = [
    'open_button',
    'media_library_update_widget',
    'media_library_selection',
    'remove_button',
    'selection',
  ];
  foreach ($data as $key) {
    unset($settings[$key]);
  }
}