You are here

author_pane.module in Author Pane 8.3

Contains author_pane.module.

File

author_pane.module
View source
<?php

/**
 * @file
 * Contains author_pane.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\author_pane\Entity\AuthorPane;

/**
 * Implements hook_help().
 */
function author_pane_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the author_pane module.
    case 'help.page.author_pane':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Displays information about a user in a block.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_theme().
 */
function author_pane_theme() {
  $theme = [];
  return $theme;
}

/**
 * Menu argument loader. Returns an Author Pane entity
 *
 * @param $id
 *
 * @return AuthorPane
 */
function author_pane_load($id) {
  return AuthorPane::load($id);
}

Functions

Namesort descending Description
author_pane_help Implements hook_help().
author_pane_load Menu argument loader. Returns an Author Pane entity
author_pane_theme Implements hook_theme().