You are here

public function GridStackEngineManager::getClassOptions in GridStack 8.2

Returns preset classes with the custom defined for .row or .box__content.

File

src/GridStackEngineManager.php, line 68

Class

GridStackEngineManager
Implements GridStackEngineManagerInterface.

Namespace

Drupal\gridstack

Code

public function getClassOptions($type = 'generic') {
  if (!isset($this->classOptions[$type])) {
    if ($this
      ->framework()) {
      $this->classOptions[$type] = $type == 'row' ? $this
        ->framework()
        ->rowClassOptions() : $this
        ->framework()
        ->classOptions();
    }
  }
  return $this->classOptions[$type];
}