You are here

WSDecoderString.php in Web Service Data 2.0.x

Same filename and directory in other branches
  1. 8 src/Plugin/WSDecoder/WSDecoderString.php

File

src/Plugin/WSDecoder/WSDecoderString.php
View source
<?php

namespace Drupal\wsdata\Plugin\WSDecoder;

use Drupal\wsdata\Plugin\WSDecoderBase;

/**
 * String Decoder.
 *
 * @WSDecoder(
 *   id = "WSDecoderString",
 *   label = @Translation("String Decoder (Passes data as is)", context = "WSDecoder"),
 * )
 */
class WSDecoderString extends WSDecoderBase {

  /**
   * {@inheritdoc}
   *
   * Return data as is.
   */
  public function decode($data) {
    return $data;
  }

}

Classes

Namesort descending Description
WSDecoderString String Decoder.