public function Field::submitGroupByForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/Field.php \Drupal\views\Plugin\views\field\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
- core/
modules/ views/ src/ Plugin/ views/ field/ Field.php, line 655 - Contains \Drupal\views\Plugin\views\field\Field.
Class
- Field
- A field that displays entity field data.
Namespace
Drupal\views\Plugin\views\fieldCode
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(array(
'options',
'group_column',
));
$item['group_columns'] = array_filter($form_state
->getValue(array(
'options',
'group_columns',
)));
}