interface DataProviderInterface in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/DataProvider/DataProviderInterface.php \Drupal\gutenberg\DataProvider\DataProviderInterface
Provides data for entity type.
@package Drupal\gutenberg\DataProvider
Hierarchy
- interface \Drupal\gutenberg\DataProvider\DataProviderInterface
Expanded class hierarchy of DataProviderInterface
All classes that implement DataProviderInterface
File
- src/
DataProvider/ DataProviderInterface.php, line 12
Namespace
Drupal\gutenberg\DataProviderView source
interface DataProviderInterface {
/**
* Returns array data.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* Entity instance to process.
* @param array $data
* Array of additional data to process.
*
* @return array
* The array data.
*/
public function getData(ContentEntityInterface $entity, array $data = []);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataProviderInterface:: |
public | function | Returns array data. | 2 |