
| Current Path : /var/www/html/strat/web/modules/contrib/charts/modules/charts_api_example/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/modules/contrib/charts/modules/charts_api_example/charts_api_example.module |
<?php
/**
* @file
* Charts API Example module file.
*/
use Drupal\Core\Hook\Attribute\LegacyHook;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*
* @phpstan-ignore-next-line
*/
#[LegacyHook]
function charts_api_example_help($route_name, RouteMatchInterface $route_match) {
return \Drupal::service('charts_api_example.hooks')->help($route_name, $route_match);
}
/**
* Implements hook_chart_definition_CHART_ID_alter().
*
* @phpstan-ignore-next-line
*/
#[LegacyHook]
function charts_api_example_chart_definition_example_id_php_alter(&$chart) {
return \Drupal::service('charts_api_example.hooks')->chartDefinitionExampleIdPhpAlter($chart);
}
/**
* Implements hook_chart_alter().
*
* @phpstan-ignore-next-line
*/
#[LegacyHook]
function charts_api_example_chart_alter(array &$element, ?string $chart_id) {
return \Drupal::service('charts_api_example.hooks')->chartAlter($element, $chart_id);
}