ViewsTestRssThemeHooks.php
Namespace
Drupal\views_test_rss\HookFile
-
core/
modules/ views/ tests/ modules/ views_test_rss/ src/ Hook/ ViewsTestRssThemeHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\views_test_rss\Hook;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\Core\StringTranslation\StringTranslationTrait;
/**
* Hook implementations for views_test_rss.
*/
class ViewsTestRssThemeHooks {
use StringTranslationTrait;
/**
* Implements hook_preprocess_HOOK().
*/
public function preprocessViewsViewRss(&$variables) : void {
$variables['channel_elements'][] = [
'#type' => 'html_tag',
'#tag' => 'copyright',
'#value' => $this->t('Copyright 2019 Dries Buytaert'),
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ViewsTestRssThemeHooks | Hook implementations for views_test_rss. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.