You are here

public function GridStackStylizer::attach in GridStack 8.2

Provides gridstack skins and libraries.

File

src/GridStackStylizer.php, line 151

Class

GridStackStylizer
Implements GridStackStylizerInterface.

Namespace

Drupal\gridstack

Code

public function attach(array &$load, array $attach = []) {
  if (!empty($attach['_stylizer'])) {
    $load['library'][] = 'gridstack/stylizer';
    $this
      ->setAttachments($load, $attach);
  }
}