function composer_manager_vendor_dir in Composer Manager 7
Same name and namespace in other branches
- 6.2 composer_manager.module \composer_manager_vendor_dir()
- 6 composer_manager.module \composer_manager_vendor_dir()
- 7.2 composer_manager.module \composer_manager_vendor_dir()
Returns the path to the vendor directory.
Return value
string
5 calls to composer_manager_vendor_dir()
- composer_manager_installed_packages_load in ./
composer_manager.admin.inc - Loads the composer.lock file if it exists.
- composer_manager_register_autoloader in ./
composer_manager.module - Registers the autoloader for all third-party packages.
- composer_manager_relative_vendor_dir in ./
composer_manager.writer.inc - Returns the vendor directory relative to the composer file directory.
- composer_manager_requirements in ./
composer_manager.install - Implements hook_requirements().
- drush_composer_manager_update_autoloader in ./
composer_manager.drush.inc - Add new autoloader paths to the Class Loader.
4 string references to 'composer_manager_vendor_dir'
- composer_manager_beta5_compatibility in ./
composer_manager.module - Ensures that sites don't break after upgrading from <= 7.x-1.0-beta5.
- composer_manager_install in ./
composer_manager.install - Implements hook_install().
- composer_manager_settings_form in ./
composer_manager.admin.inc - Administrative settings for the Composer Manager module.
- composer_manager_uninstall in ./
composer_manager.install - Implements hook_uninstall().
File
- ./
composer_manager.module, line 223 - Provides consolidated management of third-party Composer-compatible packages required by contributed modules.
Code
function composer_manager_vendor_dir() {
// Don't break sites that upgraded from <= 7.x-1.0-beta5.
composer_manager_beta5_compatibility();
$vendor_dir = variable_get('composer_manager_vendor_dir', 'sites/all/vendor');
$is_absolute = 0 === strpos($vendor_dir, '/');
if (!$is_absolute) {
$vendor_dir = DRUPAL_ROOT . '/' . $vendor_dir;
}
return $vendor_dir;
}