You are here

public function FormatterManager::setResource in RESTful 7.2

Sets the resource.

Parameters

ResourceInterface $resource: The resource.

Overrides FormatterManagerInterface::setResource

File

src/Formatter/FormatterManager.php, line 63
Contains \Drupal\restful\Formatter\FormatterManager

Class

FormatterManager
Class FormatterManager.

Namespace

Drupal\restful\Formatter

Code

public function setResource($resource) {
  $this->resource = $resource;
}