function FileExampleFileHelper::__construct
Constructs a new FileExampleReadWriteForm page.
Parameters
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $streamWrapperManager: The stream wrapper manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\File\FileUrlGeneratorInterface $fileUrlGenerator: The file URL generator.
See also
https://php.watch/versions/8.0/constructor-property-promotion
File
-
modules/
file_example/ src/ FileExampleFileHelper.php, line 28
Class
- FileExampleFileHelper
- A file helper class for file_example.
Namespace
Drupal\file_exampleCode
public function __construct(StreamWrapperManagerInterface $streamWrapperManager, EntityTypeManagerInterface $entityTypeManager, FileUrlGeneratorInterface $fileUrlGenerator) {
}