You are here

public function FormatterInterface::setResource in RESTful 7.2

Sets the underlying resource.

Parameters

ResourceInterface $resource: The resource to set.

1 method overrides FormatterInterface::setResource()
Formatter::setResource in src/Plugin/formatter/Formatter.php
Sets the underlying resource.

File

src/Plugin/formatter/FormatterInterface.php, line 77
Contains \Drupal\restful\Plugin\formatter\FormatterInterface

Class

FormatterInterface

Namespace

Drupal\restful\Plugin\formatter

Code

public function setResource(ResourceInterface $resource);