dis: Display initial statistics
This commit is contained in:
parent
6d30a42e56
commit
964e74a9f4
12 changed files with 252 additions and 7 deletions
8
internal/wisski/ingredient/php/extras/stats.php
Normal file
8
internal/wisski/ingredient/php/extras/stats.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
function export_statistics() {
|
||||
$service = 'wisski_statistics.statistics';
|
||||
if (empty(\Drupal::hasService($service))) return (object)[];
|
||||
$statistics = \Drupal::service($service);
|
||||
return $statistics->update();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue