Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HandlerBase.php

function 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.

Parameters

array $form: An alterable, associative array containing the structure of the form, passed by reference.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

2 calls to HandlerBase::submitGroupByForm()
EntityField::submitGroupByForm in core/modules/views/src/Plugin/views/field/EntityField.php
Perform any necessary changes to the form values prior to storage.
EntityField::submitGroupByForm in core/modules/views/src/Plugin/views/field/EntityField.php
Perform any necessary changes to the form values prior to storage.
1 method overrides HandlerBase::submitGroupByForm()
EntityField::submitGroupByForm in core/modules/views/src/Plugin/views/field/EntityField.php
Perform any necessary changes to the form values prior to storage.

File

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

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',
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal