function ImageStyle::getImageFactory

Same name in other branches
  1. 9 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getImageFactory()
  2. 10 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\ImageStyle::getImageFactory()
  3. 11.x 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.

File

core/modules/image/src/Entity/ImageStyle.php, line 459

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

protected function getImageFactory() {
    return \Drupal::service('image.factory');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.