You are here

public function TransactionOperation::addDetail in Transaction 8

Adds a new detail template line.

Parameters

string $detail: The new template detail.

Return value

\Drupal\transaction\TransactionOperationInterface The called transaction operation.

Overrides TransactionOperationInterface::addDetail

File

src/Entity/TransactionOperation.php, line 126

Class

TransactionOperation
Transaction operations provide templates that describe transactions.

Namespace

Drupal\transaction\Entity

Code

public function addDetail($detail) {
  $this->details[] = $detail;
  return $this;
}