function FileExampleStateHelper::setDefaultFile
Sets the default file.
Parameters
string $uri: URI to save for future display in the form.
File
-
modules/
file_example/ src/ FileExampleStateHelper.php, line 41
Class
- FileExampleStateHelper
- A state helper class for the file_example module.
Namespace
Drupal\file_exampleCode
public function setDefaultFile(string $uri) : void {
$this->state
->set(self::KEY_DEFAULT_FILE, $uri);
}