private static function ChartDataCollectorTable::emptyRowColumns in Charts 8.4
Same name and namespace in other branches
- 5.0.x src/Element/ChartDataCollectorTable.php \Drupal\charts\Element\ChartDataCollectorTable::emptyRowColumns()
Empty row columns.
Parameters
array $row: The row.
Return value
array The empty row column.
1 call to ChartDataCollectorTable::emptyRowColumns()
- ChartDataCollectorTable::tableRowOperation in src/
Element/ ChartDataCollectorTable.php - Performs add or delete operation on the table row.
File
- src/
Element/ ChartDataCollectorTable.php, line 678
Class
- ChartDataCollectorTable
- Provides a chart data collector table form element.
Namespace
Drupal\charts\ElementCode
private static function emptyRowColumns(array $row) {
$columns = self::excludeWeightColumnFromRow($row);
$empty_row_columns = [];
foreach ($columns as $key => $column) {
$empty_row_columns[$key]['data'] = '';
}
return $empty_row_columns;
}