':input[name="options[group_rows]"]' =>
['checked' => TRUE
],
],
],
'#fieldset' => 'multiple_field_settings',
];
} /**
* Extend the groupby form with group columns.
*/
public function buildGroupByForm(&
$form, FormStateInterface
$form_state) { parent::
buildGroupByForm($form,
$form_state);
// With "field API" fields, the column target of the grouping function
// and any additional grouping columns must be specified.
$field_columns =
array_keys($this->
getFieldDefinition()->
getColumns());
$group_columns =
[ 'entity_id' =>
$this->
t('Entity ID'
),
] +
array_map('ucfirst',
array_combine($field_columns,
$field_columns));
$form['group_column'
] =
[ '#type' => 'select',
'#title' =>
$this->
t('Group column'
),