metatag_import_export_csv.module in Metatag Import Export CSV 8
Same filename and directory in other branches
File
metatag_import_export_csv.moduleView source
<?php
use Drupal\file\FileInterface;
/**
* Contains procedural code for the MetaTag Import Export module.
*/
/**
* File upload validator.
*
* This has to be procedural because of file_validate().
*
* @param FileInterface $file
* The uploaded file.
*/
function validate_csv_header(FileInterface $file) {
return \Drupal\metatag_import_export_csv\MetatagImport::validateCsvHeader($file);
}
Functions
Name | Description |
---|---|
validate_csv_header | File upload validator. |