public function FormatterManagerInterface::setResource in RESTful 7.2
Sets the resource.
Parameters
ResourceInterface $resource: The resource.
1 method overrides FormatterManagerInterface::setResource()
- FormatterManager::setResource in src/
Formatter/ FormatterManager.php - Sets the resource.
File
- src/
Formatter/ FormatterManagerInterface.php, line 21 - Contains \Drupal\restful\Formatter\FormatterManagerInterface
Class
Namespace
Drupal\restful\FormatterCode
public function setResource($resource);