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/dx8_keystone / dx8_keystone.module
Size: Mime:
<?php

/**
 * @file
 * Contains dx8_keystone.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function dx8_keystone_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    // Main module help for the dx8_keystone module.
    case 'help.page.dx8_keystone':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Allows developers to create custom DX8 Keystone Form elements for content authors.') . '</p>';
      return $output;

    default:
  }
}

/**
 * Implements hook_theme().
 */
function dx8_keystone_theme() {
  $themes = [];
  $themes['keystone_form'] = [
    'template' => 'keystone-form',
    'variables' => [
      'elementSettings' => NULL,
      'elementMarkup' => NULL,
      'elementContext' => NULL,
      'elementClass' => NULL,
      'elementAttributes' => NULL,
      'formId' => NULL,
    ],
    'render element' => 'children',
  ];

  return $themes;
}