You are here

public function PhotosImage::getWeight in Album Photos 8.5

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

Gets the image weight.

Return value

int Weight of the image for custom sort order.

Overrides PhotosImageInterface::getWeight

File

src/Entity/PhotosImage.php, line 271

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

public function getWeight() {
  return $this
    ->get('weight')->value;
}