You are here

interface DataProviderInterface in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/DataProvider/DataProviderInterface.php \Drupal\gutenberg\DataProvider\DataProviderInterface

Provides data for entity type.

@package Drupal\gutenberg\DataProvider

Hierarchy

Expanded class hierarchy of DataProviderInterface

All classes that implement DataProviderInterface

File

src/DataProvider/DataProviderInterface.php, line 12

Namespace

Drupal\gutenberg\DataProvider
View 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

Namesort descending Modifiers Type Description Overrides
DataProviderInterface::getData public function Returns array data. 2