podcast_publisher-1.0.0-alpha3/modules/podcast_publisher_analytics/podcast_publisher_analytics.module

modules/podcast_publisher_analytics/podcast_publisher_analytics.module
<?php

/**
 * @file
 * Module file of podcast_publisher_analytics module.
 */

use Drupal\podcast_publisher_analytics\Cron\RehashCronHandler;

/**
 * Implements hook_cron().
 */
function podcast_publisher_analytics_cron() {
  \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(RehashCronHandler::class)
    ->process();
}

/**
 * Implements hook_theme().
 */
function podcast_publisher_analytics_theme() {
  return [
    'download_intent_count_podcast' => [
      'variables' => [
        'podcast' => NULL,
        'download_intent_count' => 0,
        'title' => NULL,
        'subtitle' => NULL,
        'image' => [],
        'episode_count' => 0,
      ],
    ],
  ];
}

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

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