public function ProfileSystemStreamWrapper::getDirectoryPath in System stream wrapper 7
Implements abstract public function getDirectoryPath()
Overrides DrupalLocalStreamWrapper::getDirectoryPath
File
- ./
SystemStreamWrapper.inc, line 159
Class
- ProfileSystemStreamWrapper
- Stream wrapper for profile files using profile://.
Code
public function getDirectoryPath() {
// We cannot use drupal_get_path() here as it actually doesn't work if
// $type is 'profile'.
// @see http://drupal.org/node/1006714
if ($profile = $this
->getSystemName()) {
return 'profiles/' . $profile;
}
}