private static function ChartDataCollectorTable::excludeWeightColumnFromRow in Charts 8.4
Same name and namespace in other branches
- 5.0.x src/Element/ChartDataCollectorTable.php \Drupal\charts\Element\ChartDataCollectorTable::excludeWeightColumnFromRow()
Excludes weight column from row.
Parameters
array $row: The row.
Return value
array The columns.
3 calls to ChartDataCollectorTable::excludeWeightColumnFromRow()
- ChartDataCollectorTable::emptyRowColumns in src/
Element/ ChartDataCollectorTable.php - Empty row columns.
- ChartDataCollectorTable::processDataCollectorTable in src/
Element/ ChartDataCollectorTable.php - Processes the element to render a table to collect a data for the chart.
- ChartDataCollectorTable::tableColumnOperation in src/
Element/ ChartDataCollectorTable.php - Performs add or delete operation on the table column.
File
- src/
Element/ ChartDataCollectorTable.php, line 663
Class
- ChartDataCollectorTable
- Provides a chart data collector table form element.
Namespace
Drupal\charts\ElementCode
private static function excludeWeightColumnFromRow(array $row) {
return array_filter(array_keys($row), function ($key) {
return is_int($key);
});
}