function FileExampleStateHelper::getDefaultDirectory

Gets the default directory.

Return value

string The URI of the default directory.

File

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

Class

FileExampleStateHelper
A state helper class for the file_example module.

Namespace

Drupal\file_example

Code

public function getDefaultDirectory() : string {
    return $this->state
        ->get(self::KEY_DEFAULT_DIRECTORY, self::DEFAULT_DIRECTORY);
}