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

Breadcrumb

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

function Rss::buildOptionsForm

Overrides StylePluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/style/Rss.php, line 74

Class

Rss
Default style plugin to render an RSS feed.

Namespace

Drupal\views\Plugin\views\style

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
    $form['description'] = [
        '#type' => 'textfield',
        '#title' => $this->t('RSS description'),
        '#default_value' => $this->options['description'],
        '#description' => $this->t('This will appear in the RSS feed itself.'),
        '#maxlength' => 1024,
    ];
}

API Navigation

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