ext_tables.php 979 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Opentalent\OtStats\Controller\OtStatsController;
  3. defined('TYPO3') || die('Access denied.');
  4. // ext_tables.php contient les directives permettant de configurer le backend
  5. call_user_func(
  6. function()
  7. {
  8. /**
  9. * Registers the statistics backend module
  10. */
  11. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
  12. 'OtStats',
  13. 'web', // Make module a submodule of 'web'
  14. 'otstats', // Submodule key
  15. 'after:OtTemplatingOtcustomizer', // Position
  16. array(
  17. OtStatsController::class => 'index,askForActivationConfirmation,askForDeactivationConfirmation,enableStats,disableStats'
  18. ),
  19. array(
  20. 'access' => 'user,group',
  21. 'icon' => 'EXT:ot_stats/Resources/Public/Icons/pie-chart.png',
  22. 'labels' => 'LLL:EXT:ot_stats/Resources/Private/Language/locallang_mod.xlf',
  23. )
  24. );
  25. }
  26. );