You are here

public function SmsMessage::getOptions in SMS Framework 8

Same name in this branch
  1. 8 src/Message/SmsMessage.php \Drupal\sms\Message\SmsMessage::getOptions()
  2. 8 src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getOptions()
Same name and namespace in other branches
  1. 2.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getOptions()
  2. 2.1.x src/Entity/SmsMessage.php \Drupal\sms\Entity\SmsMessage::getOptions()

Gets the options for building or sending this SMS message.

Return value

array The options for building or sending this SMS message.

Overrides SmsMessageInterface::getOptions

3 calls to SmsMessage::getOptions()
SmsMessage::getOption in src/Entity/SmsMessage.php
Gets the option specified by the key $name.
SmsMessage::removeOption in src/Entity/SmsMessage.php
Removes an option from this SMS message.
SmsMessage::setOption in src/Entity/SmsMessage.php
Sets an option for this SMS message.

File

src/Entity/SmsMessage.php, line 116

Class

SmsMessage
Defines the SMS message entity.

Namespace

Drupal\sms\Entity

Code

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