public function PhotosImageInterface::setWeight in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x src/PhotosImageInterface.php \Drupal\photos\PhotosImageInterface::setWeight()
Sets the image weight for custom sorting.
Parameters
int $weight: The image weight.
Return value
$this The called image entity.
1 method overrides PhotosImageInterface::setWeight()
- PhotosImage::setWeight in src/
Entity/ PhotosImage.php - Sets the image weight for custom sorting.
File
- src/
PhotosImageInterface.php, line 135
Class
- PhotosImageInterface
- Provides an interface defining a photos image entity.
Namespace
Drupal\photosCode
public function setWeight($weight);