class ImageMacros

Methods

__construct( Repository $config, Container $container)

Create a new ImageMacros instance.

run($macro, Image $image)

Run a macro.

array|mixed
getMacros()

Get the macros.

$this
setMacros( array $macros)

Set the macros.

$this
addMacro($namespace, $macro)

Add an image macro hint.

bool
isMacro($macro)

Return if a macro exists or not.

Details

at line 29
__construct( Repository $config, Container $container)

Create a new ImageMacros instance.

Parameters

Repository $config
Container $container

at line 45
Image run($macro, Image $image)

Run a macro.

Parameters

$macro
Image $image

Return Value

Image

Exceptions

Exception

at line 69
array|mixed getMacros()

Get the macros.

Return Value

array|mixed

at line 81
$this setMacros( array $macros)

Set the macros.

Parameters

array $macros

Return Value

$this

at line 96
$this addMacro($namespace, $macro)

Add an image macro hint.

Parameters

$namespace
$macro

Return Value

$this

at line 109
bool isMacro($macro)

Return if a macro exists or not.

Parameters

$macro

Return Value

bool