html_formatter.module in HTML Formatter 8
Contains html_formatter.module..
File
html_formatter.moduleView source
<?php
/**
* @file
* Contains html_formatter.module..
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function html_formatter_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the html_formatter module.
case 'help.page.html_formatter':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Adds HTML Formatter to textfields') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function html_formatter_theme() {
return [
'html_formatter' => [
'variables' => [
'value' => NULL,
'tag' => NULL,
'attributes' => [],
],
],
];
}
Functions
Name | Description |
---|---|
html_formatter_help | Implements hook_help(). |
html_formatter_theme | Implements hook_theme(). |