function AnnouncementsFeedHooks::theme
Implements hook_theme().
File
-
core/
modules/ announcements_feed/ src/ Hook/ AnnouncementsFeedHooks.php, line 100
Class
- AnnouncementsFeedHooks
- Hook implementations for announcements_feed.
Namespace
Drupal\announcements_feed\HookCode
public function theme($existing, $type, $theme, $path) : array {
return [
'announcements_feed' => [
'variables' => [
'featured' => NULL,
'standard' => NULL,
'count' => 0,
'feed_link' => '',
],
],
'announcements_feed_admin' => [
'variables' => [
'featured' => NULL,
'standard' => NULL,
'count' => 0,
'feed_link' => '',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.