You are here

public function DataProviderInterface::getData in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 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
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\DataProvider

Code

public function getData(ContentEntityInterface $entity, array $data = []);