public function DataProviderInterface::getData in Gutenberg 8
Same name and namespace in other branches
- 8.2 src/DataProvider/DataProviderInterface.php \Drupal\gutenberg\DataProvider\DataProviderInterface::getData()
Returns array data.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: Entity instance to process.
array $data: Array of additional data to process.
Return value
array The array data.
2 methods override DataProviderInterface::getData()
- FileEntityDataProvider::getData in src/
DataProvider/ FileEntityDataProvider.php - Returns array data.
- MediaEntityDataProvider::getData in src/
DataProvider/ MediaEntityDataProvider.php - Returns array data.
File
- src/
DataProvider/ DataProviderInterface.php, line 25
Class
- DataProviderInterface
- Provides data for entity type.
Namespace
Drupal\gutenberg\DataProviderCode
public function getData(ContentEntityInterface $entity, array $data = []);