You are here

public function MessageQueueItem::setOptions in Courier 8

Same name and namespace in other branches
  1. 2.x src/Entity/MessageQueueItem.php \Drupal\courier\Entity\MessageQueueItem::setOptions()

Set options to pass to the message.

These options are passed to ChannelInterface::sendMessage() $options param.

Parameters

array $options: An array of options.

Return value

\Drupal\courier\MessageQueueItemInterface Returns this message queue item for chaining.

Overrides MessageQueueItemInterface::setOptions

File

src/Entity/MessageQueueItem.php, line 80

Class

MessageQueueItem
Defines a Message queue item entity.

Namespace

Drupal\courier\Entity

Code

public function setOptions(array $options) {
  $this
    ->set('options', $options);
  return $this;
}