You are here

public function SmsMessageResult::getError in SMS Framework 2.1.x

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

Gets the error of the message.

Return value

string|null A error code from \Drupal\sms\Message\SmsMessageResultError, or NULL if there was no error.

Overrides SmsMessageResultInterface::getError

File

src/Entity/SmsMessageResult.php, line 50

Class

SmsMessageResult
Defines the SMS message result entity.

Namespace

Drupal\sms\Entity

Code

public function getError() {
  return $this
    ->get('error')->value;
}