public function SmsMessageResult::getError in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::getError()
- 8 src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::getError()
Same name and namespace in other branches
- 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::getError()
- 2.1.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 48
Class
- SmsMessageResult
- Defines the SMS message result entity.
Namespace
Drupal\sms\EntityCode
public function getError() {
return $this
->get('error')->value;
}