class ImageAutorotator implements PreProcessorInterface (View source)

Properties

private bool $enabled

Is this pre-processor enabled?

Methods

$this
readConfiguration(Repository $config)

Initialize the processor from the configured values.

int
getPreProcessPriority()

Get the priority of this pre-processor.

bool
shouldPreProcess(ImportingFile $file, ImportOptions $options)

Check if this pre-processor should process a file being imported.

preProcess(ImportingFile $file, ImportOptions $options)

Pre-process a file being imported.

bool
isEnabled()

Is this pre-processor enabled?

$this
setEnabled(bool $value)

Is this pre-processor enabled?

Details

$this readConfiguration(Repository $config)

Initialize the processor from the configured values.

Parameters

Repository $config

Return Value

$this

See also

ProcessorInterface::readConfiguration

int getPreProcessPriority()

Get the priority of this pre-processor.

bool shouldPreProcess(ImportingFile $file, ImportOptions $options)

Check if this pre-processor should process a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file

Return Value

bool

See also

PreProcessorInterface::shouldPreProcess

preProcess(ImportingFile $file, ImportOptions $options)

Pre-process a file being imported.

Parameters

ImportingFile $file

the file being imported

ImportOptions $options

options to b used when importing the file

See also

PreProcessorInterface::preProcess

bool isEnabled()

Is this pre-processor enabled?

Return Value

bool

$this setEnabled(bool $value)

Is this pre-processor enabled?

Parameters

bool $value

Return Value

$this