Commit 1ffca482 authored by daniel_rose's avatar daniel_rose Committed by NickWilde

Issue #2966894 by daniel_rose, volkswagenchick: Missing hook_help implementation

parent 0b641d1c
<?php
use Drupal\Core\Routing\RouteMatchInterface;
/**
* @file
* Enabled the "colorbox inline" functionality for Drupal 8.
......@@ -12,3 +14,18 @@ function colorbox_inline_page_attachments(array &$page) {
\Drupal::service('colorbox.attachment')->attach($page);
$page['#attached']['library'][] = 'colorbox_inline/colorbox_inline';
}
/**
* Implements hook_help().
*/
function colorbox_inline_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.colorbox_inline':
return t('<p>The Colorbox Inline module allows you to open content already on the page within a colorbox.</p>
<p>See the <a href=":project_page">project page on Drupal.org</a> for more details.</p>',
[
':project_page' => 'https://www.drupal.org/project/colorbox_inline',
]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment