public static function MinisiteInterface::validateArchive in Mini site 8
Validate archive.
Can be used at early stages before Minisite instance is created (i.e. when uploading a file) to validate the archive.
Parameters
\Drupal\file\FileInterface $file: The archive file to validate.
string $content_extensions: Space-separated string list of allowed file extensions in the archive.
Throws
\Drupal\minisite\Exception\ArchiveException Throws one of the descendants of this exception based on validation failures.
1 method overrides MinisiteInterface::validateArchive()
- Minisite::validateArchive in src/
Minisite.php - Validate archive.
File
- src/
MinisiteInterface.php, line 130
Class
- MinisiteInterface
- Interface MinisiteInterface.
Namespace
Drupal\minisiteCode
public static function validateArchive(FileInterface $file, $content_extensions);