public function GridStack::breakpointsToArray in GridStack 8.2
Converts the entire breakpoint items from stored JSON into array.
1 call to GridStack::breakpointsToArray()
- GridStack::getData in src/
Entity/ GridStack.php - Returns GridStack data as string for container attributes.
File
- src/
Entity/ GridStack.php, line 141
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function breakpointsToArray() {
if (!isset($this->breakpoints)) {
$breakpoints = [];
if ($data = array_filter($this
->getBreakpoints())) {
foreach ($data as $key => $datum) {
$breakpoints[$key] = $this
->breakpointToArray($datum);
}
}
$this->breakpoints = $breakpoints;
}
return $this->breakpoints;
}