You are here

protected function ProfileSystemStreamWrapper::getSystemName in System stream wrapper 7

Override SystemSteamWrapper::getSystemName() to support profile://current

Overrides SystemStreamWrapper::getSystemName

1 call to ProfileSystemStreamWrapper::getSystemName()
ProfileSystemStreamWrapper::getDirectoryPath in ./SystemStreamWrapper.inc
Implements abstract public function getDirectoryPath()

File

./SystemStreamWrapper.inc, line 146

Class

ProfileSystemStreamWrapper
Stream wrapper for profile files using profile://.

Code

protected function getSystemName($uri = NULL) {
  $name = parent::getSystemName($uri);
  if ($name == 'current') {
    return drupal_get_profile();
  }
  else {
    return $name;
  }
}