You are here

public function GridStackManager::attach in GridStack 8.2

Same name and namespace in other branches
  1. 8 src/GridStackManager.php \Drupal\gridstack\GridStackManager::attach()
1 call to GridStackManager::attach()
GridStackManager::preRenderGridStack in src/GridStackManager.php

File

src/GridStackManager.php, line 171

Class

GridStackManager
Implements GridStackManagerInterface.

Namespace

Drupal\gridstack

Code

public function attach(array $attach = []) {
  $load = parent::attach($attach);
  if (isset($this->engineManager)) {
    $this->engineManager
      ->attach($load, $attach);
    $this->skinManager
      ->attach($load, $attach);
    $this->stylizer
      ->attach($load, $attach);
  }
  $this->moduleHandler
    ->alter('gridstack_attach', $load, $attach);
  return $load;
}