You are here

public function DataFetcherTrait::setDataFetcher in Typed Data API enhancements 8

Sets the data fetcher.

Parameters

\Drupal\typed_data\DataFetcherInterface $data_fetcher: The data fetcher.

Return value

$this

File

src/DataFetcherTrait.php, line 25

Class

DataFetcherTrait
Helper for classes that need the data fetcher object.

Namespace

Drupal\typed_data

Code

public function setDataFetcher(DataFetcherInterface $data_fetcher) {
  $this->dataFetcher = $data_fetcher;
  return $this;
}