PHP code example of heimrichhannot / contao-backend_admin_menu

1. Go to this page and download the library: Download heimrichhannot/contao-backend_admin_menu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

heimrichhannot / contao-backend_admin_menu example snippets

$GLOBALS['TL_CONFIG']['backendAdminMenuActions']

$GLOBALS['TL_CONFIG']['backendAdminMenuActions']['generate_internal_cache'] = array(
    // either use a direct url...
    'href' => 'contao/main.php?do=composer',
    // ... or a callback as href
    'href' => array('Some\Namespace\SomeClass', 'someMethod'),
    'icon' => 'system/modules/some/icon.png'
);