You are here

public function EntityDataProviderManagerInterface::registerDataProvider in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/DataProvider/EntityDataProviderManagerInterface.php \Drupal\gutenberg\DataProvider\EntityDataProviderManagerInterface::registerDataProvider()

Register entity type data provider.

Parameters

\Drupal\gutenberg\DataProvider\DataProviderInterface $data_provider: Data provider to register.

string $entity_type: Entity type machine name.

Throws

\Exception

1 method overrides EntityDataProviderManagerInterface::registerDataProvider()
EntityDataProviderManager::registerDataProvider in src/DataProvider/EntityDataProviderManager.php
Register entity type data provider.

File

src/DataProvider/EntityDataProviderManagerInterface.php, line 24

Class

EntityDataProviderManagerInterface
Handles media type persistence process.

Namespace

Drupal\gutenberg\DataProvider

Code

public function registerDataProvider(DataProviderInterface $data_provider, string $entity_type);