function HandlerBase::submitFormCalculateOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::submitFormCalculateOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::submitFormCalculateOptions()
  3. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::submitFormCalculateOptions()

Calculates options stored on the handler.

Parameters

array $options: The options stored in the handler

array $form_state_options: The newly submitted form state options.

Return value

array The new options

1 method overrides HandlerBase::submitFormCalculateOptions()
EntityField::submitFormCalculateOptions in core/modules/views/src/Plugin/views/field/EntityField.php
Calculates options stored on the handler.

File

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

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

public function submitFormCalculateOptions(array $options, array $form_state_options) {
    return $form_state_options + $options;
}

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