protected function ImageStyle::getImageFactory in Drupal 10
Same name and namespace in other branches
- 8 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getImageFactory()
- 9 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getImageFactory()
Returns the image factory.
Return value
\Drupal\Core\Image\ImageFactory The image factory.
2 calls to ImageStyle::getImageFactory()
- ImageStyle::createDerivative in core/
modules/ image/ src/ Entity/ ImageStyle.php - Creates a new image derivative based on this image style.
- ImageStyle::supportsUri in core/
modules/ image/ src/ Entity/ ImageStyle.php - Determines if this style can be applied to a given image.
File
- core/
modules/ image/ src/ Entity/ ImageStyle.php, line 464
Class
- ImageStyle
- Defines an image style configuration entity.
Namespace
Drupal\image\EntityCode
protected function getImageFactory() {
return \Drupal::service('image.factory');
}