You are here

public function StaticDataDefinitionExtractor::__construct in JSON:API Schema 8

StaticDataDefinitionExtractor constructor.

Parameters

\Drupal\Core\TypedData\TypedDataManagerInterface: The typed data manager used for creating the data types.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager: The typed config manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

File

src/StaticDataDefinitionExtractor.php, line 65

Class

StaticDataDefinitionExtractor
Extracts the data definition for entities of an entity type.

Namespace

Drupal\jsonapi_schema

Code

public function __construct(TypedDataManagerInterface $typed_data_manager, TypedConfigManagerInterface $typed_config_manager, EntityFieldManagerInterface $entity_field_manager) {
  $this->typedDataManager = $typed_data_manager;
  $this->typedConfigManager = $typed_config_manager;
  $this->entityFieldManager = $entity_field_manager;
}