You are here

private static function ChartDataCollectorTable::excludeWeightColumnFromRow in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 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 674

Class

ChartDataCollectorTable
Provides a chart data collector table form element.

Namespace

Drupal\charts\Element

Code

private static function excludeWeightColumnFromRow(array $row) {
  return array_filter(array_keys($row), function ($key) {
    return is_int($key);
  });
}