t3lib_extMgm addModule is a PHP function that allows developers to add new modules to TYPO3. This function is part of the TYPO3 Core API and is used to extend the CMS functionality.
Here are some code examples of how t3lib_extMgm addModule is used:
Example 1:
t3lib_extMgm::addModule( 'my_extension', 'web', // Module type '', // Position in selector 'EXT:my_extension/Resources/Public/Icons/module.png', array( 'routeTarget' => \MyExtension\Controller\MyController::class . '::myAction' ) );
This code snippet adds a new web module to the TYPO3 backend dashboard for the "my_extension" extension. The module's icon is specified in the fourth parameter and the "routeTarget" option is used to specify the module's controller and action methods.
Example 2:
t3lib_extMgm::addModulePath( 'web_', // Module prefix 'EXT:my_extension/Controller/', // Path to the module directory 'user', // Module position 'EXT:my_extension/Resources/Public/Icons/module.png' );
In this example, the addModulePath() function is used to add a module directory path for the "my_extension" extension. The module prefix is set to "web_" and the module's position is set to "user". The fourth parameter specifies the module's icon.
The package library for these examples is TYPO3 Core API.
PHP t3lib_extMgm::addModule - 30 examples found. These are the top rated real world PHP examples of t3lib_extMgm::addModule extracted from open source projects. You can rate examples to help us improve the quality of examples.