You are here

WSEncoderString.php in Web Service Data 2.0.x

Same filename and directory in other branches
  1. 8 src/Plugin/WSEncoder/WSEncoderString.php

File

src/Plugin/WSEncoder/WSEncoderString.php
View source
<?php

namespace Drupal\wsdata\Plugin\WSEncoder;

use Drupal\wsdata\Plugin\WSEncoderBase;

/**
 * String Encoder.
 *
 * @WSEncoder(
 *   id = "WSEncoderString",
 *   label = @Translation("String Encoder (Passes data as is)", context = "WSEncoder"),
 * )
 */
class WSEncoderString extends WSEncoderBase {

  /**
   * Doesn't do anything.
   */
  public function encode(&$data, &$replacements, &$url) {
  }

}

Classes

Namesort descending Description
WSEncoderString String Encoder.