public function FileReplaceAccessCheck::__construct in File Replace (D8) 8
Constructs a EntityCreateAccessCheck object.
Parameters
\Drupal\file\FileUsage\FileUsageInterface $file_usage: The file usage service.
File
- src/
Access/ FileReplaceAccessCheck.php, line 29
Class
- FileReplaceAccessCheck
- Determines access to replacing a file.
Namespace
Drupal\file_replace\AccessCode
public function __construct(FileUsageInterface $file_usage) {
$this->fileUsage = $file_usage;
}