Skip to content
Snippets Groups Projects

Issue #3335623: hook_help function missing in .module file

4 unresolved threads
4 unresolved threads
1 file
+ 20
0
Compare changes
  • Side-by-side
  • Inline
+ 20
0
@@ -6,7 +6,27 @@
*/
use Drupal\editor\Entity\Editor;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function codesnippet_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the codesnippet module.
case 'help.page.codesnippet':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module enables the CodeSnippet plugin from CKEditor.com in your WYSIWYG.
It includes the highlightjs library and all available styles for it. If you have ever wanted to
Please register or sign in to reply
drop code examples in your Drupal content and have it highlighted in a pretty format, this is
for you. This project is available for Drupal 7 as WYSIWYG CodeSnippet. Since that project
Please register or sign in to reply
relies on WYSIWYG module, and this one only requires D8 core, it made sense to rename it.') . '</p>';
    • I am not sure the note about renaming the module is relevant for using the module.

      Actually, not even the part about the Drupal 7 module seems relevant, for a site running of Drupal 8 or higher versions.

Please register or sign in to reply
return $output;
default:
Please register or sign in to reply
}
}
/**
* Implements hook_ckeditor_css_alter().
*
Loading