protected function AutocompleteController::getDataFetcher in Salesforce Suite 8.3
Gets the data fetcher, or throw an exception if typed_data not installed.
Return value
\Drupal\typed_data\DataFetcherInterface The data fetcher.
Throws
\Exception
File
- modules/
salesforce_mapping/ src/ Controller/ AutocompleteController.php, line 81
Class
- AutocompleteController
- Class AutocompleteController.
Namespace
Drupal\salesforce_mapping\ControllerCode
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;
}