public function GridStack::getNestedGridsByDelta in GridStack 8.2
Same name and namespace in other branches
- 8 src/Entity/GridStack.php \Drupal\gridstack\Entity\GridStack::getNestedGridsByDelta()
Returns the current nested grids with preserved indices even if empty.
Only cares for the last breakpoint, others inherit its structure. The reason is all breakpoints may have different DOM positionings, heights and widths each, but they must have the same grid structure.
Parameters
int $delta: The current delta.
Return value
mixed|array Available grids by the given $delta parameter, else empty.
Overrides GridStackInterface::getNestedGridsByDelta
1 call to GridStack::getNestedGridsByDelta()
- GridStack::prepareRegions in src/
Entity/ GridStack.php - Returns regions based on available grids.
File
- src/
Entity/ GridStack.php, line 224
Class
- GridStack
- Defines the GridStack configuration entity.
Namespace
Drupal\gridstack\EntityCode
public function getNestedGridsByDelta($delta = 0, $preserve = FALSE) {
return $this
->getGridsByDelta($delta, 'nested', $preserve);
}