public function PhotosImage::setFormat in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::setFormat()
Sets the text format name for the image description.
Parameters
string $format: The text format name.
Return value
$this The called image entity.
Overrides PhotosImageInterface::setFormat
File
- src/
Entity/ PhotosImage.php, line 227
Class
- PhotosImage
- Defines the photos image entity class.
Namespace
Drupal\photos\EntityCode
public function setFormat($format) {
$this
->get('description')->format = $format;
return $this;
}