You are here

public function FileLinkItem::setResponse in File Link 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldType/FileLinkItem.php \Drupal\file_link\Plugin\Field\FieldType\FileLinkItem::setResponse()

Sets the latest HTTP response.

Parameters

\Psr\Http\Message\ResponseInterface $response: The last response to be stored.

Return value

$this

Overrides FileLinkInterface::setResponse

1 call to FileLinkItem::setResponse()
FileLinkItem::preSave in src/Plugin/Field/FieldType/FileLinkItem.php
Defines custom presave behavior for field values.

File

src/Plugin/Field/FieldType/FileLinkItem.php, line 240

Class

FileLinkItem
Implements a 'file_link' plugin field type.

Namespace

Drupal\file_link\Plugin\Field\FieldType

Code

public function setResponse(ResponseInterface $response) {
  $this->response = $response;
  return $this;
}