You are here

public function ReplicationTask::setParameter in Replication 8.2

Same name and namespace in other branches
  1. 8 src/ReplicationTask/ReplicationTask.php \Drupal\replication\ReplicationTask\ReplicationTask::setParameter()

Set a parameter for the filter plugin.

If no parameter bag yet exists, an empty parameter bag will be created.

Parameters

string $name: The parameter name to set.

string $value: The value for the parameter.

Return value

ReplicationTaskInterface Returns $this.

Overrides ReplicationTaskInterface::setParameter

File

src/ReplicationTask/ReplicationTask.php, line 120

Class

ReplicationTask

Namespace

Drupal\replication\ReplicationTask

Code

public function setParameter($name, $value) {
  if (!is_array($this->parameters)) {
    $this
      ->setParameters([]);
  }
  $this->parameters[$name] = $value;
  return $this;
}