You are here

class DataInterpreterEMW in RESTful 7.2

Hierarchy

Expanded class hierarchy of DataInterpreterEMW

1 file declares its use of DataInterpreterEMW
DataProviderEntity.php in src/Plugin/resource/DataProvider/DataProviderEntity.php
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.

File

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

Namespace

Drupal\restful\Plugin\resource\DataInterpreter
View source
class DataInterpreterEMW extends DataInterpreterBase implements DataInterpreterInterface {

  /**
   * Returns the \EntityDrupalWrapper.
   *
   * @return \EntityDrupalWrapper
   *   The wrapper describing the entity.
   */
  public function getWrapper() {

    // Note: this is just implemented to override the docblock. Now when we call
    // DataInterpreterEMW::getWrapper we know we are getting a
    // \EntityDrupalWrapper object back.
    return parent::getWrapper();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DataInterpreterBase::$account protected property The account.
DataInterpreterBase::$wrapper protected property The wrapper.
DataInterpreterBase::getAccount public function Get the account. Overrides DataInterpreterInterface::getAccount
DataInterpreterBase::__construct public function Constructs a DataInterpreter object.
DataInterpreterEMW::getWrapper public function Returns the \EntityDrupalWrapper. Overrides DataInterpreterBase::getWrapper