public function GridStackVariant::getOptionset in GridStack 8.2
Returns the source GridStack optionset.
2 calls to GridStackVariant::getOptionset()
- GridStackVariant::defaultSettings in src/
Entity/ GridStackVariant.php - GridStackVariant::getOption in src/
Entity/ GridStackVariant.php - Returns the value of a gridstack option group.
File
- src/
Entity/ GridStackVariant.php, line 68
Class
- GridStackVariant
- Defines the GridStack variant configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getOptionset($default = 'default', $custom = FALSE) {
$source = $this->source ? $this->source : $default;
return GridStack::loadWithFallback($custom ? $default : $source);
}