You are here

public function MessageQueueItem::getOptions in Courier 8

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

Get options to pass to the message.

Return value

array An array of options.

Overrides MessageQueueItemInterface::getOptions

File

src/Entity/MessageQueueItem.php, line 73

Class

MessageQueueItem
Defines a Message queue item entity.

Namespace

Drupal\courier\Entity

Code

public function getOptions() {
  return $this
    ->get('options')
    ->first() ? $this
    ->get('options')
    ->first()
    ->getValue() : [];
}