ImageService

Read onlyYes

Service for processing images

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Properties

$resourceFactory  : ResourceFactory

Methods

__construct()  : mixed
applyProcessingInstructions()  : ProcessedFile
Create a processed file
getImage()  : File|FileReference
Get File or FileReference object
getImageUri()  : string
Get public url of image depending on the environment

Properties

Methods

getImageUri()

Get public url of image depending on the environment

public getImageUri(FileInterface $image[, bool|false $absolute = false ]) : string
Parameters
$image : FileInterface
$absolute : bool|false = false

Force absolute URL

Return values
string
On this page

Search results