You are here

public function EntityField::submitGroupByForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::submitGroupByForm()

Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.

Overrides HandlerBase::submitGroupByForm

File

core/modules/views/src/Plugin/views/field/EntityField.php, line 681

Class

EntityField
A field that displays entity field data.

Namespace

Drupal\views\Plugin\views\field

Code

public function submitGroupByForm(&$form, FormStateInterface $form_state) {
  parent::submitGroupByForm($form, $form_state);
  $item =& $form_state
    ->get('handler')->options;

  // Add settings for "field API" fields.
  $item['group_column'] = $form_state
    ->getValue([
    'options',
    'group_column',
  ]);
  $item['group_columns'] = array_filter($form_state
    ->getValue([
    'options',
    'group_columns',
  ]));
}