public function GridStack::getSetting in GridStack 8.2
Same name and namespace in other branches
- 8 src/Entity/GridStack.php \Drupal\gridstack\Entity\GridStack::getSetting()
Returns the value of a gridstack setting.
Parameters
string $name: The setting name.
mixed $default: The default value.
Return value
mixed The option value.
Overrides GridStackInterface::getSetting
1 call to GridStack::getSetting()
- GridStack::getLastColumn in src/
Entity/ GridStack.php - Returns the last breakpoint column, or fallback to global setting.
File
- src/
Entity/ GridStack.php, line 102
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getSetting($name, $default = NULL) {
return NULL !== $this
->getOptions('settings', $name) ? $this
->getOptions('settings', $name) : $default;
}