You are here

page_url_qr_code_block.module in Page URL QR Code Block 8

Same filename and directory in other branches
  1. 7 page_url_qr_code_block.module

Contains module logic for page_url_qr_code_block.

File

page_url_qr_code_block.module
View source
<?php

/**
 * @file
 * Contains module logic for page_url_qr_code_block.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function page_url_qr_code_block_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.page_url_qr_code_block':
      $output = '<p>' . t('A tiny module that provides a Block with a QR Code for that Page automatically. You can configure through block configure page.') . '</p>';
      return $output;
    case 'entity.page_url_qr_code_block.edit_form':
      return t('An advanced action offers additional configuration options which may be filled out below. Changing the <em>Description</em> field is recommended in order to better identify the precise action taking place.');
  }
}

/**
 * Implements hook_theme().
 */
function page_url_qr_code_block_theme($existing, $type, $theme, $path) {
  return array(
    'page_url_qr_code_block' => array(
      'variables' => array(
        'url' => array(),
        'alt' => array(),
        'width' => array(),
        'height' => array(),
        'caption' => array(),
      ),
    ),
  );
}

Functions