You are here

public function SmsMessage::getOption in SMS Framework 8

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

Gets the option specified by the key $name.

Parameters

string $name: The name of the option.

Return value

mixed Get the value of the option.

Overrides SmsMessageInterface::getOption

File

src/Entity/SmsMessage.php, line 123

Class

SmsMessage
Defines the SMS message entity.

Namespace

Drupal\sms\Entity

Code

public function getOption($name) {
  $options = $this
    ->getOptions();
  return isset($options[$name]) ? $options[$name] : NULL;
}