ext_tables.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. if (TYPO3_MODE === 'BE') {
  9. /**
  10. * Registers the statistics backend module
  11. */
  12. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
  13. 'OtStats',
  14. 'web', // Make module a submodule of 'web'
  15. 'otstats', // Submodule key
  16. 'after:OtTemplatingOtcustomizer', // Position
  17. array(
  18. OtStatsController::class => 'index,askForActivationConfirmation,askForDeactivationConfirmation,enableStats,disableStats'
  19. ),
  20. array(
  21. 'access' => 'user,group',
  22. 'icon' => 'EXT:ot_stats/Resources/Public/Icons/pie-chart.png',
  23. 'labels' => 'LLL:EXT:ot_stats/Resources/Private/Language/locallang_mod.xlf',
  24. )
  25. );
  26. }
  27. }
  28. );