packthub_ebook_integration-1.0.0/packt.module

packt.module
<?php

function packt_api_token(): string {
  $config = \Drupal::config('packt.settings');
  return $config->get('api_token') ?? "";
}

function packt_ebook_maps(): array {
  $config = \Drupal::config('packt.fields_settings');
  return $config->get('field_sets') ?? [];
}

function packt_theme(): array {
  return [
    'packt_products_dashboard' => [
      'variables' => [
        'title' => NULL,
        'content' => NULL,
      ],
      'template' => 'packt_products_dashboard',
    ],
    'packt_products_search' => [
      'variables' => [
        'title' => NULL,
        'content' => NULL,
      ],
      'template' => 'packt_products_search',
    ],
  ];
}

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

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