You are here

public function ProcessorPluginBase::submitConfigurationForm in Facets 8

Same name in this branch
  1. 8 src/Processor/ProcessorPluginBase.php \Drupal\facets\Processor\ProcessorPluginBase::submitConfigurationForm()
  2. 8 modules/facets_summary/src/Processor/ProcessorPluginBase.php \Drupal\facets_summary\Processor\ProcessorPluginBase::submitConfigurationForm()

File

src/Processor/ProcessorPluginBase.php, line 34

Class

ProcessorPluginBase
A base class for plugins that implements most of the boilerplate.

Namespace

Drupal\facets\Processor

Code

public function submitConfigurationForm(array $form, FormStateInterface $form_state, FacetInterface $facet) {
  if (!$form_state instanceof SubformStateInterface) {
    $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
    trigger_error(sprintf('%s::%s() SHOULD receive %s on line %d, but %s was given. More information is available at https://www.drupal.org/node/2774077.', $trace[1]['class'], $trace[1]['function'], SubformStateInterface::class, $trace[1]['line'], get_class($form_state)), E_USER_DEPRECATED);
  }
  $this
    ->setConfiguration($form_state
    ->getValues());
}