public function PhotosImage::getWeight in Album Photos 8.5
Same name and namespace in other branches
- 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\EntityCode
public function getWeight() {
return $this
->get('weight')->value;
}