You are here

public function CsvParser::setHasHeader in Feeds 8.3

Sets whether or not the CSV file contains a header.

Parameters

bool $has_header: (optional) Whether or the CSV file has a header. Defaults to true.

Return value

$this

File

src/Component/CsvParser.php, line 149

Class

CsvParser
Parses an RFC 4180 style CSV file.

Namespace

Drupal\feeds\Component

Code

public function setHasHeader($has_header = TRUE) {
  $this->hasHeader = (bool) $has_header;
  return $this;
}