json_table-1.0.6/json_table.module

json_table.module
<?php

/**
 * @file
 * Json table Module.
 */

use Drupal\Core\Field\FieldTypeCategoryManagerInterface;

/**
 * Implements hook_theme().
 */
function json_table_theme($existing, $type, $theme, $path) {
  $variables = [
    'json_table_chart' => [
      'variables' => [
        'id_field_name' => 'json-table-chart',
        'settings' => NULL,
        'attributes' => [],
        'langcode' => 'en',
      ],
      'template' => 'json-table-chart',
    ],
  ];

  return $variables;
}

/**
 * Implements hook_field_type_category_info_alter().
 */
function json_table_field_type_category_info_alter(&$definitions) {
  $definitions[FieldTypeCategoryManagerInterface::FALLBACK_CATEGORY]['libraries'][] = 'json_table/drupal.json-table-icon';
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc