You are here

public function Extras::attach in GridStack 8.2

Provides gridstack skins and libraries.

Overrides GridStackStylizerPluginBase::attach

1 call to Extras::attach()
Builder::attach in src/Plugin/gridstack/stylizer/Builder.php
Provides gridstack skins and libraries.
1 method overrides Extras::attach()
Builder::attach in src/Plugin/gridstack/stylizer/Builder.php
Provides gridstack skins and libraries.

File

src/Plugin/gridstack/stylizer/Extras.php, line 50

Class

Extras
Provides the extras styles.

Namespace

Drupal\gridstack\Plugin\gridstack\stylizer

Code

public function attach(array &$load, array $attach = []) {
  parent::attach($load, $attach);
  if ($this
    ->getStyle('parallax', $attach) && empty($attach['_ipe'])) {
    $load['library'][] = 'gridstack/parallax';
  }
}