facebook_feed.module in Facebook Feed Block 8
Contains facebook_feed.module.
File
facebook_feed.moduleView source
<?php
/**
* @file
* Contains facebook_feed.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function facebook_feed_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.facebook_feed':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('A simple block that displays a list of posts from a facebook user, page, group, etc.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function facebook_feed_theme() {
return [
'facebook_post' => [
'variables' => [
'id' => NULL,
'created_time' => NULL,
'message' => NULL,
'picture' => NULL,
'link' => NULL,
'show_socials' => NULL,
'num_likes' => NULL,
'num_comments' => NULL,
'num_reactions' => NULL,
'num_shares' => NULL,
],
],
];
}
Functions
Name | Description |
---|---|
facebook_feed_help | Implements hook_help(). |
facebook_feed_theme | Implements hook_theme(). |