1 file_example_session_streams.inc | public FileExampleSessionStreamWrapper::getExternalUrl() |
Overrides getExternalUrl().
We have set up a helper function and menu entry to provide access to this key via HTTP; normally it would be accessible some other way.
Overrides BackdropStreamWrapperInterface::getExternalUrl
File
- modules/
examples/ file_example/ file_example_session_streams.inc, line 168 - Provides a demonstration session:// stream-wrapper.
Class
- FileExampleSessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Code
public function getExternalUrl() {
$path = $this->getLocalPath();
$url = url('examples/file_example/access_session/' . $path, array('absolute' => TRUE));
return $url;
}