Problem/Motivation
After the completion of the new Extension system API's in #2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList and #2659940: Extension System, Part III: ThemeExtensionList and ThemeEngineExtensionList, drupal_get_path()
has been replaced with the theme, module and profile extension listing services. This issue will deprecate the usage of drupal_get_path()
in core and replace with the relevant extension listing service calls (Module|Profile|Theme)ExtensionList::getPath()
.
Proposed resolution
Replace all dynamic uses drupal_get_path() with (Module|Profile|Theme)ExtensionList::getPath()
. The earlier issue #2351919: Replace uses of drupal_get_path() with __DIR__ where possible had taken care of static includes where relative location of the files were fixed.
Remaining tasks
Reviews
Commit
User interface changes
None
API changes
drupal_get_path() is deprecated.