function HandlerBase::submitGroupByForm

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::submitGroupByForm()

Perform any necessary changes to the form values prior to storage.

There is no need for this function to actually store the data.

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 358

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

public function submitGroupByForm(&$form, FormStateInterface $form_state) {
  $form_state->get('handler')->options['group_type'] = $form_state->getValue([
    'options',
    'group_type',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.