You are here

public function TransactionOperation::setDetails in Transaction 8

Sets the operation detail templates.

Parameters

string[] $details: (optional) Array with the new detail templates. Empty array by default.

Return value

\Drupal\transaction\TransactionOperationInterface The called transaction operation.

Overrides TransactionOperationInterface::setDetails

File

src/Entity/TransactionOperation.php, line 118

Class

TransactionOperation
Transaction operations provide templates that describe transactions.

Namespace

Drupal\transaction\Entity

Code

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