You are here

public function MappedObject::getSalesforceUrl in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Entity/MappedObject.php \Drupal\salesforce_mapping\Entity\MappedObject::getSalesforceUrl()
  2. 5.0.x modules/salesforce_mapping/src/Entity/MappedObject.php \Drupal\salesforce_mapping\Entity\MappedObject::getSalesforceUrl()

Get a salesforce url for the linked record.

Return value

string The salesforce url for the linked SF record.

Overrides MappedObjectInterface::getSalesforceUrl

File

modules/salesforce_mapping/src/Entity/MappedObject.php, line 374

Class

MappedObject
Defines a Salesforce Mapped Object entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

public function getSalesforceUrl() {
  return $this
    ->authMan()
    ->getProvider()
    ->getInstanceUrl() . '/' . $this->salesforce_id->value;
}