ResourceAwareProcessorInterface

interface \TYPO3\CMS\Core\Resource\Processing\ResourceAwareProcessorInterface

Extends
ProcessorInterface

Marker interface for processors that can handle a task whose source file is not a FAL File - most commonly a system resource shipped with a package.

TaskInterface::getSourceFile()/getTargetFile() are typed widely enough to allow this, but a processor's canProcessTask()/processTask() historically assumed a File/ProcessedFile and may dereference File-specific methods. ProcessorRegistry only ever offers a non-FAL task to a processor that has explicitly opted in by implementing this interface, so an existing (including third-party) ProcessorInterface implementation that has not been reviewed for this is never handed a task it cannot actually process.

Like any interface, it is inherited: a subclass of a processor implementing it is offered non-FAL tasks as well, and has to decline them in canProcessTask() itself if it can only handle a FAL File.

Table of Contents

Methods

canProcessTask()  : bool
Returns TRUE if this processor can process the given task.
processTask()  : mixed
Processes the given task and sets the processing result in the task object.

Methods

canProcessTask()

Returns TRUE if this processor can process the given task.

public canProcessTask(TaskInterface $task) : bool

Parameters

$task : TaskInterface

Return values

bool
On this page