protected function CsvParser::configSourceDescription in Feeds 8.3
Returns the description for single source.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup|null A translated string if there's a description. Null otherwise.
Overrides ParserBase::configSourceDescription
File
- src/
Feeds/ Parser/ CsvParser.php, line 104
Class
- CsvParser
- Defines a CSV feed parser.
Namespace
Drupal\feeds\Feeds\ParserCode
protected function configSourceDescription() {
if ($this
->getConfiguration('no_headers')) {
return $this
->t('Enter which column number of the CSV file to use: 0, 1, 2, etc.');
}
return $this
->t('Enter the exact CSV column name. This is case-sensitive.');
}