public function SmsMessageResult::setErrorMessage in SMS Framework 8
Same name in this branch
- 8 src/Message/SmsMessageResult.php \Drupal\sms\Message\SmsMessageResult::setErrorMessage()
- 8 src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setErrorMessage()
Same name and namespace in other branches
- 2.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setErrorMessage()
- 2.1.x src/Entity/SmsMessageResult.php \Drupal\sms\Entity\SmsMessageResult::setErrorMessage()
Sets the error message.
Parameters
string $message: The error message as provided by the gateway API.
Return value
$this Returns this report object for chaining.
Overrides SmsMessageResultInterface::setErrorMessage
File
- src/
Entity/ SmsMessageResult.php, line 70
Class
- SmsMessageResult
- Defines the SMS message result entity.
Namespace
Drupal\sms\EntityCode
public function setErrorMessage($message) {
$this
->set('error_message', $message);
return $this;
}