abstract class TransformationsPlugin implements TransformationsInterface (View source)

Provides a common interface that will have to be implemented by all of the transformations plugins.

Methods

bool
applyTransformationNoWrap(array $options = [])

Returns true if the element requires no wrapping

array
getOptions(array $options, array $defaults)

Returns passed options or default values if they were not set

Details

bool applyTransformationNoWrap(array $options = [])

Returns true if the element requires no wrapping

Parameters

array $options

transformation options

Return Value

bool

array getOptions(array $options, array $defaults)

Returns passed options or default values if they were not set

Parameters

array $options

List of passed options

array $defaults

List of default values

Return Value

array

List of options possibly filled in by defaults.