You are here

DataInterpreterEMW.php in RESTful 7.2

Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreter.

File

src/Plugin/resource/DataInterpreter/DataInterpreterEMW.php
View source
<?php

/**
 * @file
 * Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreter.
 */
namespace Drupal\restful\Plugin\resource\DataInterpreter;

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();
  }

}

Classes

Namesort descending Description
DataInterpreterEMW