<?php
defined('TYPO3_MODE') || die();

call_user_func(
  static function () {
    // Domain model "Activepage"
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
      'tx_pagemanager_domain_model_activepage',
      'EXT:pagemanager/Resources/Private/Language/locallang_csh_tx_pagemanager_domain_model_activepage.xlf'
    );

    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
      'Pagemanager',
      'tools',
      'pgmgt',
      'bottom',
      [
        \Meramo\Pagemanager\Controller\BackendController::class => 'index,showLast',

      ],
      [
        'access' => 'admin,user,systemMaintainer',
        'icon'   => 'EXT:pagemanager/Resources/Public/Icons/Extension.png',
        'labels' => 'LLL:EXT:pagemanager/Resources/Private/Language/locallang_pgmgt.xlf',
      ]
    );
  }
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('pagemanager', 'Configuration/TypoScript', 'Meramo Backend Pagemanager Extension');
