public function FileLinkItem::setException in File Link 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldType/FileLinkItem.php \Drupal\file_link\Plugin\Field\FieldType\FileLinkItem::setException()
Sets the exception throw by the last HTTP client request.
Parameters
\GuzzleHttp\Exception\RequestException $exception: The last Guzzle request exception.
Return value
$this
Overrides FileLinkInterface::setException
1 call to FileLinkItem::setException()
- FileLinkItem::preSave in src/
Plugin/ Field/ FieldType/ FileLinkItem.php - Defines custom presave behavior for field values.
File
- src/
Plugin/ Field/ FieldType/ FileLinkItem.php, line 263
Class
- FileLinkItem
- Implements a 'file_link' plugin field type.
Namespace
Drupal\file_link\Plugin\Field\FieldTypeCode
public function setException(RequestException $exception) {
$this->exception = $exception;
return $this;
}