function FileExampleStateHelper::setDefaultDirectory

Sets the default directory.

Parameters

string $uri: URI to save for later form display.

File

modules/file_example/src/FileExampleStateHelper.php, line 61

Class

FileExampleStateHelper
A state helper class for the file_example module.

Namespace

Drupal\file_example

Code

public function setDefaultDirectory(string $uri) : void {
    $this->state
        ->set(self::KEY_DEFAULT_DIRECTORY, $uri);
}