public function ParserBase::getEncoder in Feeds extensible parsers 8
Returns the encoder.
Return value
\Drupal\feeds_ex\Encoder\EncoderInterface The encoder object.
File
- src/
Feeds/ Parser/ ParserBase.php, line 887
Class
- ParserBase
- The Feeds extensible parser.
Namespace
Drupal\feeds_ex\Feeds\ParserCode
public function getEncoder() {
if (!isset($this->encoder)) {
$class = $this->encoderClass;
$this->encoder = new $class($this->configuration['source_encoding']);
}
return $this->encoder;
}