append()
append(\Drupal\strata\Journal\JournalOp $operation, string|null $payload = null) : \Drupal\strata\Journal\JournalOp
Appends an operation and its payload.
The sequence on the supplied operation is ignored; the journal assigns it, because only the journal can order two concurrent requests.
Parameters
| \Drupal\strata\Journal\JournalOp | $operation | The operation to append. |
| string|null | $payload | The value the operation captured, or NULL for an operation that carries none. |
Throws
- \RuntimeException
When the append fails.
Returns
\Drupal\strata\Journal\JournalOp —The operation as appended, carrying its assigned sequence.