public function GridStackBase::getOption in GridStack 8.2
Returns the value of a gridstack option group.
Parameters
string $group: The group name: settings, icon, use_framework, breakpoints.
Return value
mixed The option value merged with defaults.
Overrides GridStackBaseInterface::getOption
4 calls to GridStackBase::getOption()
- GridStack::getBreakpoints in src/
Entity/ GridStack.php - Returns options.breakpoints.[xs|sm|md|lg|xl], or all, else empty.
- GridStack::getIconUri in src/
Entity/ GridStack.php - Returns the icon URI.
- GridStack::isFramework in src/
Entity/ GridStack.php - Returns TRUE if Use CSS framework is enabled, else FALSE.
- GridStackVariant::getOption in src/
Entity/ GridStackVariant.php - Returns the value of a gridstack option group.
1 method overrides GridStackBase::getOption()
- GridStackVariant::getOption in src/
Entity/ GridStackVariant.php - Returns the value of a gridstack option group.
File
- src/
Entity/ GridStackBase.php, line 110
Class
- GridStackBase
- Defines the base class for GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getOption($group, $default = NULL) {
// Makes sure to not call ::getOptions($group), else everything is dumped.
return isset($this
->getOptions()[$group]) ? $this
->getOptions()[$group] : $default;
}