submitOptionsForm done incorrectly

Created on 10 June 2025, 14 days ago

Problem/Motivation

While writing my own display extender, I found your code and tried using the same method for submitOptionsForm. It didn't work.

Steps to reproduce

Proposed resolution

  /**
   * {@inheritdoc}
   */
  public function submitOptionsForm(&$form, FormStateInterface $form_state) {
    parent::submitOptionsForm($form, $form_state);

    if ($form_state->get('section') === 'exposed_block') {
      $this->options['exposed_block_exclude'] = $form_state->getValue('exposed_block_exclude');
    }
  }

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024