video_type_text-8.x-1.0/video_type_text.module
video_type_text.module
<?php /** * @file * Contains video_type_text.module.. */ use Drupal\Core\Routing\RouteMatchInterface; /** * Implements hook_help(). */ function video_type_text_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { // Main module help for the video_type_text module. case 'help.page.video_type_text': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<dt>' . t('Basic Usage : Video with description') . '</dt>'; $output .= '<dd>' . t('Add content for type Video Type Text. You will have video content and at bottom of video description will come as typing text.') . '</dd>'; $output .= '<dd>' . t('To modify any of the speed of how the text is typed please modify in the type-text.js') . '</dd>'; return $output; default: } } /** * Implements hook_theme() for video_type_text_theme(). */ function video_type_text_theme($existing, $type, $theme, $path) { return [ 'node__video_type_text' => [ 'template' => 'node--video-type-text', 'base hook' => 'node', ], ]; }