interface DataInterpreterInterface in RESTful 7.2
Hierarchy
- interface \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface
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.
File
- src/
Plugin/ resource/ DataInterpreter/ DataInterpreterInterface.php, line 10 - Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterInterface.
Namespace
Drupal\restful\Plugin\resource\DataInterpreterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataInterpreterInterface:: |
public | function | Get the account. | 1 |
DataInterpreterInterface:: |
public | function | Get the wrapper. | 1 |