
| Current Path : /var/www/html/rocksensor/web/modules/contrib/csv_importer/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/modules/contrib/csv_importer/src/ParserInterface.php |
<?php
namespace Drupal\csv_importer;
/**
* Csv parser manager interface.
*/
interface ParserInterface {
/**
* Get CSV by id.
*
* @param int $id
* CSV id.
* @param string $delimiter
* CSV delimiter.
*
* @return array|null
* Parsed CSV.
*/
public function getCsvById(int $id, string $delimiter);
/**
* Get CSV column (first row).
*
* @param int $id
* CSV id.
*
* @return array|null
* CSV field names.
*/
public function getCsvFieldsById(int $id);
/**
* Load CSV.
*
* @param int $id
* CSV id.
*
* @return \Drupal\file\Entity\File|null
* Entity object.
*/
public function getCsvEntity(int $id);
}