Row
Helper functions for Row entity
Table of Contents
Methods
- getDefaultRowLayoutMap() : array<string|int, mixed>
- Build row layout map with passed positions.
- getRowDefaultEntity() : DashboardRow
- Row fabric generate row with layout where exist cells with ids from $positions array.
Methods
getDefaultRowLayoutMap()
Build row layout map with passed positions.
public
static getDefaultRowLayoutMap(array<string|int, mixed> $positions) : array<string|int, mixed>
Parameters
- $positions : array<string|int, mixed>
-
Array of available positions in built Row layout map.
Return values
array<string|int, mixed>getRowDefaultEntity()
Row fabric generate row with layout where exist cells with ids from $positions array.
public
static getRowDefaultEntity(array<string|int, mixed> $params) : DashboardRow
Parameters
- $params : array<string|int, mixed>
-
Parameters like [cellIds => ['cell_1', 'cell_2'], weight => 5].