function _drush_extension_get_path

8.0.x environment_7.inc _drush_extension_get_path($info)
8.0.x environment_6.inc _drush_extension_get_path($info)
8.0.x environment.inc _drush_extension_get_path($info)
7.x environment_7.inc _drush_extension_get_path($info)
7.x environment_6.inc _drush_extension_get_path($info)
7.x environment.inc _drush_extension_get_path($info)
master environment_7.inc _drush_extension_get_path($info)
master environment.inc _drush_extension_get_path($info)

Gets the extension path.

Parameters

$info: The extension info.

Return value

string The extension path.

3 calls to _drush_extension_get_path()
drush_extension_get_path in includes/environment.inc
Gets the extension path.
_core_path_aliases in commands/core/core.drush.inc
_drush_make_generate_projects in commands/make/generate.make.inc
Generate the $projects makefile array for the current site.

File

commands/core/drupal/environment.inc, line 404
Specific functions for a drupal 8+ environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal Drush is called from.

Code

function _drush_extension_get_path($info) {
  return $info->getPath();
}