TransformationsInterface
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
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