function FileExampleStateHelper::deleteDefaultState

Removes the default file and default directory from the state storage.

File

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

Class

FileExampleStateHelper
A state helper class for the file_example module.

Namespace

Drupal\file_example

Code

public function deleteDefaultState() : void {
    $this->state
        ->delete(self::KEY_DEFAULT_DIRECTORY);
    $this->state
        ->delete(self::KEY_DEFAULT_FILE);
}