You are here

interface DataInterpreterInterface in RESTful 7.2

Hierarchy

Expanded class hierarchy of DataInterpreterInterface

All classes that implement DataInterpreterInterface

23 files declare their use of DataInterpreterInterface
Articles__1_5.php in modules/restful_example/src/Plugin/resource/node/article/v1/Articles__1_5.php
Contains \Drupal\restful_example\Plugin\resource\node\article\v1\Articles__1_5.
DataProviderEntity.php in src/Plugin/resource/DataProvider/DataProviderEntity.php
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.
DataProviderTaxonomyTerm.php in tests/modules/restful_test/src/Plugin/resource/taxonomy_term/v1/DataProviderTaxonomyTerm.php
Contains \Drupal\restful_test\Plugin\resource\taxonomy_term\v1\DataProviderTaxonomyTerm.
Discovery.php in src/Plugin/resource/Discovery.php
Contains \Drupal\restful\Plugin\resource\Discovery
FormatterJsonApi.php in src/Plugin/formatter/FormatterJsonApi.php
Contains \Drupal\restful\Plugin\formatter\FormatterJsonApi.

... See full list

File

src/Plugin/resource/DataInterpreter/DataInterpreterInterface.php, line 10
Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface.

Namespace

Drupal\restful\Plugin\resource\DataInterpreter
View source
interface DataInterpreterInterface {

  /**
   * Get the account.
   *
   * @return object
   *   The fully loaded account.
   */
  public function getAccount();

  /**
   * Get the wrapper.
   *
   * @return mixed
   *   The entity metadata wrapper describing the entity. Every data source will
   *   return a different wrapper type. For instance a data source for entities
   *   will return an \EntityDrupalWrapper, a data source for DB query will
   *   return a DatabaseColumnWrapper, etc.
   */
  public function getWrapper();

}

Members

Namesort descending Modifiers Type Description Overrides
DataInterpreterInterface::getAccount public function Get the account. 1
DataInterpreterInterface::getWrapper public function Get the wrapper. 1