public function Field::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

drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php, line 650
Definition of Drupal\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Drupal\field\Plugin\views\field

Code

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

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