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

Breadcrumb

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

function Feed::submitOptionsForm

Overrides PathPluginBase::submitOptionsForm

File

core/modules/views/src/Plugin/views/display/Feed.php, line 350

Class

Feed
The plugin that handles a feed, such as RSS or atom.

Namespace

Drupal\views\Plugin\views\display

Code

public function submitOptionsForm(&$form, FormStateInterface $form_state) {
    parent::submitOptionsForm($form, $form_state);
    $section = $form_state->get('section');
    switch ($section) {
        case 'title':
            $this->setOption('sitename_title', $form_state->getValue('sitename_title'));
            break;
        case 'displays':
            $this->setOption($section, $form_state->getValue($section));
            break;
    }
}

API Navigation

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