Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
drupal/cohesion_javascript_element / cohesion_javascript_element.module
Size: Mime:
<?php

/**
 * @file
 * Contains cohesion_javascript_element.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function cohesion_javascript_element_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the cohesion_javascript_element module.
    case 'help.page.cohesion_javascript_element':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Allows developers to enter custom javascript and add dependencies from libraries defined in a *.library.yml file.') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function cohesion_javascript_element_theme() {
  return [
    'cohesion_javascript_element' => [
      'render element' => 'children',
    ],
  ];
}