You are here

public function GridStackManager::getSkinOptions in GridStack 8

Returns available skins for select options.

File

src/GridStackManager.php, line 48

Class

GridStackManager
Implements GridStackManagerInterface.

Namespace

Drupal\gridstack

Code

public function getSkinOptions() {
  if (!isset($this->skinOptions)) {
    $this->skinOptions = [];
    foreach ($this
      ->getSkins() as $skin => $properties) {
      $this->skinOptions[$skin] = isset($properties['name']) ? strip_tags($properties['name']) : $skin;
    }
  }
  return $this->skinOptions;
}