You are here

public function TransactionType::getOption in Transaction 8

Gets a transaction type additional option value.

Parameters

string $name: The option to retrieve.

mixed $default_value: Default value to return if no such option or it is empty.

Return value

mixed The option current value or the default value if not available.

Overrides TransactionTypeInterface::getOption

File

src/Entity/TransactionType.php, line 204

Class

TransactionType
Provides a type of transaction.

Namespace

Drupal\transaction\Entity

Code

public function getOption($name, $default_value = NULL) {
  return isset($this->options[$name]) ? $this->options[$name] : $default_value;
}