protected function PropertiesExtended::getDataFetcher in Salesforce Suite 8.3
Data Fetcher wrapper.
Return value
\Drupal\typed_data\DataFetcherInterface Data fetcher service.
Throws
\Exception If typed_data.data_fetcher service does not exist.
File
- modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ PropertiesExtended.php, line 226
Class
- PropertiesExtended
- Adapter for entity properties and fields.
Namespace
Drupal\salesforce_mapping\Plugin\SalesforceMappingFieldCode
protected function getDataFetcher() {
if (!\Drupal::hasService('typed_data.data_fetcher')) {
throw new \Exception('Module typed_data must be installed to use Extended Properties');
}
if (empty($this->dataFetcher)) {
$this->dataFetcher = \Drupal::service('typed_data.data_fetcher');
}
return $this->dataFetcher;
}