function TypedDataResolver::__construct

Same name in other branches
  1. 8.x-3.x src/TypedDataResolver.php \Drupal\ctools\TypedDataResolver::__construct()

Typed Data Resolver Service constructor.

Parameters

\Drupal\Core\TypedData\TypedDataManagerInterface $manager: The typed data manager.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.

File

src/TypedDataResolver.php, line 44

Class

TypedDataResolver
Typed Data Resolver Service.

Namespace

Drupal\ctools

Code

public function __construct(TypedDataManagerInterface $manager, TranslationInterface $translation) {
    $this->manager = $manager;
    $this->translation = $translation;
}