function ImageStyleInterface::buildUri
Same name in other branches
- 8.9.x core/modules/image/src/ImageStyleInterface.php \Drupal\image\ImageStyleInterface::buildUri()
- 10 core/modules/image/src/ImageStyleInterface.php \Drupal\image\ImageStyleInterface::buildUri()
- 11.x core/modules/image/src/ImageStyleInterface.php \Drupal\image\ImageStyleInterface::buildUri()
Returns the URI of this image when using this style.
The path returned by this function may not exist. The default generation method only creates images when they are requested by a user's browser. Modules may implement this method to decide where to place derivatives.
Parameters
string $uri: The URI or path to the original image.
Return value
string The URI to the image derivative for this style.
1 method overrides ImageStyleInterface::buildUri()
- ImageStyle::buildUri in core/
modules/ image/ src/ Entity/ ImageStyle.php - Returns the URI of this image when using this style.
File
-
core/
modules/ image/ src/ ImageStyleInterface.php, line 44
Class
- ImageStyleInterface
- Provides an interface defining an image style entity.
Namespace
Drupal\imageCode
public function buildUri($uri);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.