You are here

public function PropertiesBase::dataFetcher in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesBase.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\PropertiesBase::dataFetcher()

Data fetcher getter.

Return value

\Drupal\typed_data\DataFetcherInterface|mixed Data fetcher.

File

modules/salesforce_mapping/src/Plugin/SalesforceMappingField/PropertiesBase.php, line 44

Class

PropertiesBase
Base class for properties plugins.

Namespace

Drupal\salesforce_mapping\Plugin\SalesforceMappingField

Code

public function dataFetcher() {
  if (empty($this->dataFetcher)) {
    $this->dataFetcher = \Drupal::service('typed_data.data_fetcher');
  }
  return $this->dataFetcher;
}