You are here

public function PlaceholderResolver::__construct in Typed Data API enhancements 8

Constructs the object.

Parameters

\Drupal\typed_data\DataFetcherInterface $data_fetcher: The typed data manager.

\Drupal\typed_data\DataFilterManagerInterface $data_filter_manager: The data filter manager.

File

src/PlaceholderResolver.php, line 40

Class

PlaceholderResolver
Resolver for placeholder tokens based upon typed data.

Namespace

Drupal\typed_data

Code

public function __construct(DataFetcherInterface $data_fetcher, DataFilterManagerInterface $data_filter_manager) {
  $this->dataFetcher = $data_fetcher;
  $this->dataFilterManager = $data_filter_manager;
}