You are here

abstract public function WSEncoderBase::encode in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSEncoderBase.php \Drupal\wsdata\Plugin\WSEncoderBase::encode()

Encode data into format just sending it off.

Overrides WSEncoderInterface::encode

2 methods override WSEncoderBase::encode()
WSEncoderJSON::encode in src/Plugin/WSEncoder/WSEncoderJSON.php
Encode JSON.
WSEncoderString::encode in src/Plugin/WSEncoder/WSEncoderString.php
Doesn't do anything.

File

src/Plugin/WSEncoderBase.php, line 15

Class

WSEncoderBase
Base class for Web Service Encoder plugins.

Namespace

Drupal\wsdata\Plugin

Code

public abstract function encode(&$data, &$replacement, &$url);