interface EntityDataProviderManagerInterface in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/DataProvider/EntityDataProviderManagerInterface.php \Drupal\gutenberg\DataProvider\EntityDataProviderManagerInterface
Handles media type persistence process.
@package Drupal\gutenberg\Persistence
Hierarchy
- interface \Drupal\gutenberg\DataProvider\EntityDataProviderManagerInterface
Expanded class hierarchy of EntityDataProviderManagerInterface
All classes that implement EntityDataProviderManagerInterface
File
- src/
DataProvider/ EntityDataProviderManagerInterface.php, line 12
Namespace
Drupal\gutenberg\DataProviderView source
interface EntityDataProviderManagerInterface {
/**
* Register entity type data provider.
*
* @param \Drupal\gutenberg\DataProvider\DataProviderInterface $data_provider
* Data provider to register.
* @param string $entity_type
* Entity type machine name.
*
* @throws \Exception
*/
public function registerDataProvider(DataProviderInterface $data_provider, string $entity_type);
/**
* Get data for specified entity type.
*
* @param string $entity_type
* Entity type machine name.
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* Entity instance.
* @param array $data
* (optional) Additional data to process.
*
* @return mixed
* The data for the specified entity type.
*
* @throws \Exception
*/
public function getData(string $entity_type, ContentEntityInterface $entity, array $data = []);
/**
* Check if data provider for specified entity type exists.
*
* @param string $data_provider
* Machine name of a data provider (entity type machine name).
*
* @return bool
* TRUE if the specified entity type exists, FALSE otherwise.
*/
public function isRegistered(string $data_provider);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDataProviderManagerInterface:: |
public | function | Get data for specified entity type. | 1 |
EntityDataProviderManagerInterface:: |
public | function | Check if data provider for specified entity type exists. | 1 |
EntityDataProviderManagerInterface:: |
public | function | Register entity type data provider. | 1 |