You are here

public function FeedTypeTamperMeta::setTamperConfig in Feeds Tamper 8.2

Sets the configuration for a tamper plugin instance.

Parameters

string $instance_id: The ID of a tamper plugin to set the configuration for.

array $configuration: The tamper plugin configuration to set.

Return value

$this

Overrides FeedTypeTamperMetaInterface::setTamperConfig

File

src/FeedTypeTamperMeta.php, line 132

Class

FeedTypeTamperMeta
Class for managing tamper plugins for a feed type.

Namespace

Drupal\feeds_tamper

Code

public function setTamperConfig($instance_id, array $configuration) {
  $configuration['uuid'] = $instance_id;
  $this
    ->getTampers()
    ->setInstanceConfiguration($instance_id, $configuration);
  $this
    ->updateFeedType();
  return $this;
}