You are here

public function RestfulFormatterBase::__construct in RESTful 7

Generic constructor.

Parameters

array $plugin: The formatter plugin definition.

\RestfulBase $handler: The restful handler that will call the output formatter.

Overrides RestfulPluginBase::__construct

File

plugins/formatter/RestfulFormatterBase.php, line 24
Contains RestfulFormatterBase.

Class

RestfulFormatterBase
@file Contains RestfulFormatterBase.

Code

public function __construct(array $plugin, $handler = NULL) {
  $this
    ->setPlugin($plugin);
  $this->handler = $handler;
}