You are here

public function FeedImportConfigurable::setOptions in Feed Import 8

Sets options for this instance

Parameters

array $options: An assoc array containig options

bool $overwrite: TRUE if the options should pe overwritten, FALSE to merge them

2 calls to FeedImportConfigurable::setOptions()
ChunkedXMLFIReader::setOptions in feed_import_base/src/ChunkedXMLFIReader.php
Sets options for this instance
FeedImportReader::__construct in feed_import_base/src/FeedImportReader.php
Constructor of reader. Constructor is final but you'll have to implement init() to init your reader.
4 methods override FeedImportConfigurable::setOptions()
ChunkedXMLFIReader::setOptions in feed_import_base/src/ChunkedXMLFIReader.php
Sets options for this instance
FeedImportMultiFilter::setOptions in feed_import_base/src/FeedImportMultiFilter.php
Sets options for this instance
FeedImportProcessor::setOptions in feed_import_base/src/FeedImportProcessor.php
Sets options for this instance
FeedImportSQLHashes::setOptions in feed_import_base/src/FeedImportSQLHashes.php
Sets options for this instance

File

feed_import_base/src/FeedImportConfigurable.php, line 20

Class

FeedImportConfigurable
This class provides methods to set options.

Namespace

Drupal\feed_import_base

Code

public function setOptions(array $options, $overwrite = FALSE) {
  if ($overwrite) {
    $this->options = $options;
  }
  else {
    $this->options = $options + $this->options;
  }
}