interface TransformationsInterface (View source)

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

Methods

static string
getInfo()

Gets the transformation description

static string
getMIMEType()

Gets the specific MIME type

static string
getMIMESubtype()

Gets the specific MIME subtype

static string
getName()

Gets the transformation name of the specific plugin

string
applyTransformation(string $buffer, array $options = [], FieldMetadata|null $meta = null)

Does the actual work of each specific transformations plugin.

bool
applyTransformationNoWrap(array $options = [])

Returns true if the element requires no wrapping

Details

static string getInfo()

Gets the transformation description

Return Value

string

static string getMIMEType()

Gets the specific MIME type

Return Value

string

static string getMIMESubtype()

Gets the specific MIME subtype

Return Value

string

static string getName()

Gets the transformation name of the specific plugin

Return Value

string

string applyTransformation(string $buffer, array $options = [], FieldMetadata|null $meta = null)

Does the actual work of each specific transformations plugin.

Parameters

string $buffer

text to be transformed

array $options

transformation options

FieldMetadata|null $meta

meta information

Return Value

string

the transformed text

bool applyTransformationNoWrap(array $options = [])

Returns true if the element requires no wrapping

Parameters

array $options

transformation options

Return Value

bool