@@ -26,28 +26,28 @@ class FileExampleReadWriteForm extends FormBase {
26
26
/**
27
27
* Interface of the "state" service for site-specific data.
28
28
*
29
- * @var StateInterface
29
+ * @var \Drupal\Core\State\ StateInterface
30
30
*/
31
31
protected $ state ;
32
32
33
33
/**
34
34
* Object used to get request data, such as the session.
35
35
*
36
- * @var RequestStack
36
+ * @var \Symfony\Component\HttpFoundation\ RequestStack
37
37
*/
38
38
protected $ requestStack ;
39
39
40
40
/**
41
41
* Service for manipulating a file system.
42
42
*
43
- * @var FileSystemInterface
43
+ * @var \Drupal\Core\File\ FileSystemInterface
44
44
*/
45
45
protected $ fileSystem ;
46
46
47
47
/**
48
48
* Service for fetching a stream wrapper for a file or directory.
49
49
*
50
- * @var StreamWrapperManagerInterface
50
+ * @var \Drupal\Core\StreamWrapper\ StreamWrapperManagerInterface
51
51
*/
52
52
protected $ streamWrapperManager ;
53
53
@@ -61,24 +61,24 @@ class FileExampleReadWriteForm extends FormBase {
61
61
/**
62
62
* Service for invoking hooks and other module operations.
63
63
*
64
- * @var ModuleHandlerInterface
64
+ * @var \Drupal\Core\Extension\ ModuleHandlerInterface
65
65
*/
66
66
protected $ moduleHandler ;
67
67
68
68
/**
69
69
* Constructs a new FileExampleReadWriteForm page.
70
70
*
71
- * @param StateInterface $state
71
+ * @param \Drupal\Core\State\ StateInterface $state
72
72
* Storage interface for state data.
73
- * @param FileSystemInterface $file_system
73
+ * @param \Drupal\Core\File\ FileSystemInterface $file_system
74
74
* Interface for common file system operations.
75
- * @param StreamWrapperManagerInterface $stream_wrapper_manager
75
+ * @param \Drupal\Core\StreamWrapper\ StreamWrapperManagerInterface $stream_wrapper_manager
76
76
* Interface to obtain stream wrappers used to manipulate a given file
77
77
* scheme.
78
- * @param ModuleHandlerInterface $module_handler
78
+ * @param \Drupal\Core\Extension\ ModuleHandlerInterface $module_handler
79
79
* Interface to get information about the status of modules and other
80
80
* extensions.
81
- * @param RequestStack $request_stack
81
+ * @param \Symfony\Component\HttpFoundation\ RequestStack $request_stack
82
82
* Access to the current request, including to session objects.
83
83
*/
84
84
public function __construct (
@@ -194,7 +194,7 @@ protected function setDefaultDirectory($uri) {
194
194
* @param string $uri
195
195
* The URI of the file, like public://test.txt.
196
196
*
197
- * @return FileInterface|bool
197
+ * @return \Drupal\file\Entity\ FileInterface|bool
198
198
* A file object that matches the URI, or FALSE if not a managed file.
199
199
*
200
200
* @todo This should still work. An entity query could be used instead.
@@ -772,7 +772,7 @@ public function handleDirectoryDelete(array &$form, FormStateInterface $form_sta
772
772
*
773
773
* @param array $form
774
774
* FormAPI form.
775
- * @param FormStateInterface $form_state
775
+ * @param \Drupal\Core\Form\ FormStateInterface $form_state
776
776
* FormAPI form state.
777
777
*/
778
778
public function handleDirectoryExists (array &$ form , FormStateInterface $ form_state ) {
@@ -810,7 +810,7 @@ public function handleShowSession(array &$form, FormStateInterface $form_state)
810
810
*
811
811
* @param array $form
812
812
* FormAPI form.
813
- * @param FormStateInterface $form_state
813
+ * @param \Drupal\Core\Form\ FormStateInterface $form_state
814
814
* FormAPI form state.
815
815
*
816
816
* @todo Note this does NOT clear any managed file references in Drupal's DB.
0 commit comments