public function GridStackBase::attach in GridStack 8.2
Provides gridstack skins and libraries.
Overrides GridStackEnginePluginBase::attach
2 calls to GridStackBase::attach()
- GridStackJs::attach in src/
Plugin/ gridstack/ engine/ GridStackJs.php - Provides gridstack skins and libraries.
- GridStackNative::attach in src/
Plugin/ gridstack/ engine/ GridStackNative.php - Provides gridstack skins and libraries.
2 methods override GridStackBase::attach()
- GridStackJs::attach in src/
Plugin/ gridstack/ engine/ GridStackJs.php - Provides gridstack skins and libraries.
- GridStackNative::attach in src/
Plugin/ gridstack/ engine/ GridStackNative.php - Provides gridstack skins and libraries.
File
- src/
Plugin/ gridstack/ engine/ GridStackBase.php, line 24
Class
- GridStackBase
- Provides the base class for two-dimensional layout engines.
Namespace
Drupal\gridstack\Plugin\gridstack\engineCode
public function attach(array &$load, array $attach = []) {
parent::attach($load, $attach);
// Only load libraries if not destroyed, nor using Bootstrap/ Foundation.
if ($this
->getSetting('_gridstack')) {
$load['drupalSettings']['gridstack'] = GridStack::defaultSettings();
}
}