You are here

public function TransactionType::setOption in Transaction 8

Sets a transaction type option.

Parameters

string $name: The option to set.

mixed $value: The new value.

Return value

\Drupal\transaction\TransactionTypeInterface The called transaction type.

Overrides TransactionTypeInterface::setOption

File

src/Entity/TransactionType.php, line 218

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

public function setOption($name, $value) {
  $this->options[$name] = $value;
  return $this;
}