function ViewsTestRssThemeHooks::preprocessViewsViewRss

Implements hook_preprocess_HOOK().

Attributes

#[Hook('preprocess_views_view_rss')]

File

core/modules/views/tests/modules/views_test_rss/src/Hook/ViewsTestRssThemeHooks.php, line 19

Class

ViewsTestRssThemeHooks
Hook implementations for views_test_rss.

Namespace

Drupal\views_test_rss\Hook

Code

public function preprocessViewsViewRss(&$variables) : void {
  $variables['channel_elements'][] = [
    '#type' => 'html_tag',
    '#tag' => 'copyright',
    '#value' => $this->t('Copyright 2019 Dries Buytaert'),
  ];
}

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