You are here

public function EntityNotFoundException::getFormattableMessage in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/EntityNotFoundException.php \Drupal\salesforce\EntityNotFoundException::getFormattableMessage()
  2. 5.0.x src/EntityNotFoundException.php \Drupal\salesforce\EntityNotFoundException::getFormattableMessage()

Get a formattable message.

Return value

\Drupal\Component\Render\FormattableMarkup The message.

File

src/EntityNotFoundException.php, line 77

Class

EntityNotFoundException
EntityNotFoundException extends Drupal\salesforce\Exception.

Namespace

Drupal\salesforce

Code

public function getFormattableMessage() {
  return new FormattableMarkup('Entity not found. type: %type properties: %props', [
    '%type' => $this->entityTypeId,
    '%props' => var_export($this->entityProperties, TRUE),
  ]);
}