You are here

public function PhotosImage::getFormat in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::getFormat()

Gets the text format name for the image description.

Return value

string The text format name.

Overrides PhotosImageInterface::getFormat

File

src/Entity/PhotosImage.php, line 220

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

public function getFormat() {
  return $this
    ->get('description')->format;
}