class ViewsTestRssThemeHooks
Same name and namespace in other branches
- 11.x core/modules/views/tests/modules/views_test_rss/src/Hook/ViewsTestRssThemeHooks.php \Drupal\views_test_rss\Hook\ViewsTestRssThemeHooks
Hook implementations for views_test_rss.
Hierarchy
- class \Drupal\views_test_rss\Hook\ViewsTestRssThemeHooks uses \Drupal\Core\StringTranslation\StringTranslationTrait
Expanded class hierarchy of ViewsTestRssThemeHooks
File
-
core/
modules/ views/ tests/ modules/ views_test_rss/ src/ Hook/ ViewsTestRssThemeHooks.php, line 13
Namespace
Drupal\views_test_rss\HookView source
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'),
];
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overrides |
|---|---|---|---|---|
| StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 |
| StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | |
| StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | |
| StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | |
| StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 |
| StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | 1 |
| ViewsTestRssThemeHooks::preprocessViewsViewRss | public | function | Implements hook_preprocess_HOOK(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.