DataProviderInterface.php in Gutenberg 8.2
Same filename and directory in other branches
Namespace
Drupal\gutenberg\DataProviderFile
src/DataProvider/DataProviderInterface.phpView source
<?php
namespace Drupal\gutenberg\DataProvider;
use Drupal\Core\Entity\ContentEntityInterface;
/**
* Provides data for entity type.
*
* @package Drupal\gutenberg\DataProvider
*/
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 = []);
}
Interfaces
Name | Description |
---|---|
DataProviderInterface | Provides data for entity type. |