function FileExampleStateHelper::getDefaultFile
Gets the default file.
Return value
string The URI of the default file.
File
-
modules/
file_example/ src/ FileExampleStateHelper.php, line 31
Class
- FileExampleStateHelper
- A state helper class for the file_example module.
Namespace
Drupal\file_exampleCode
public function getDefaultFile() : string {
return $this->state
->get(self::KEY_DEFAULT_FILE, self::DEFAULT_FILE);
}