class FileExampleSessionHelperWrapper
A wrapper of session helper for file_example.
Hierarchy
- class \Drupal\file_example\FileExampleSessionHelperWrapper
Expanded class hierarchy of FileExampleSessionHelperWrapper
1 string reference to 'FileExampleSessionHelperWrapper'
- file_example.services.yml in modules/
file_example/ file_example.services.yml - modules/file_example/file_example.services.yml
1 service uses FileExampleSessionHelperWrapper
File
-
modules/
file_example/ src/ FileExampleSessionHelperWrapper.php, line 10
Namespace
Drupal\file_exampleView source
class FileExampleSessionHelperWrapper {
/**
* Constructs a new FileExampleSessionHelperWrapper object.
*
* @param \Drupal\stream_wrapper_example\SessionHelper $sessionHelper
* The session helper.
*
* @see https://php.watch/versions/8.0/constructor-property-promotion
*/
public function __construct(SessionHelper $sessionHelper) {
}
/**
* Resets our stored data.
*/
public function clearStoredData() {
$this->sessionHelper
->cleanUpStore();
}
/**
* Gets our stored data for display.
*/
public function getStoredData() {
return $this->sessionHelper
->getPath('');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FileExampleSessionHelperWrapper::clearStoredData | public | function | Resets our stored data. |
FileExampleSessionHelperWrapper::getStoredData | public | function | Gets our stored data for display. |
FileExampleSessionHelperWrapper::__construct | public | function | Constructs a new FileExampleSessionHelperWrapper object. |