You are here

interface WSDecoderInterface in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/WSDecoderInterface.php \Drupal\wsdata\Plugin\WSDecoderInterface

Defines an interface for Wsdecoder plugin plugins.

Hierarchy

Expanded class hierarchy of WSDecoderInterface

All classes that implement WSDecoderInterface

File

src/Plugin/WSDecoderInterface.php, line 10

Namespace

Drupal\wsdata\Plugin
View source
interface WSDecoderInterface extends PluginInspectionInterface {

  /**
   * Returns a list of the data/encoding formats support by this decoder.
   */
  public function accepts();

  /**
   * Returns the error from the last parse the decoder ran.
   */
  public function getError();

  /**
   * Return the data element at the location given.
   */
  public function getData($key = NULL, $lang = NULL);

  /**
   * Add raw data to be parsed.
   */
  public function addData($data, $lang = NULL, $context = []);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
WSDecoderInterface::accepts public function Returns a list of the data/encoding formats support by this decoder. 1
WSDecoderInterface::addData public function Add raw data to be parsed. 1
WSDecoderInterface::getData public function Return the data element at the location given. 1
WSDecoderInterface::getError public function Returns the error from the last parse the decoder ran. 1