PHP code example of fenetikm / autoload-drupal
1. Go to this page and download the library: Download fenetikm/autoload-drupal 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/ */
fenetikm / autoload-drupal example snippets
return array(
'Drupal\\user\\' => array($baseDir . '/app/core/modules/user/src'),
'Drupal\\my_module\\' => array($baseDir . '/app/modules/custom/my_module/src'),
'Drupal\\rad-module\\' => array($baseDir . '/app/modules/contrib/rad-module/src'),
'Drupal\\entity\\' => array($baseDir . '/app/core/modules/entity/src'),
);
sh
composer dump-autoload