eZ.Processable Class
View extension providing the concept of processor. The processors are
run after the event indicated by the _processEvent
property.
Item Index
Methods
Properties
Attributes
Methods
_process
(
protected
-
[event]
Loops through the processors to run them on the view.
Parameters:
-
[event]
EventFacade optionalthe event parameters of the event triggering the process (if any)
addProcessor
(
-
processor
-
priority
Adds a processor to the list with the given priority. A processor is
an object that should have a process
method. When run, the
processor will receive the view being processed.
Parameters:
-
processor
Object -
priority
Number
removeProcessor
(
-
matchingFn
Removes one or several processors matching the given matchingFn
function.
Parameters:
-
matchingFn
Functionit receives the processor and if it returns a truthy value, the corresponding processor is excluded from the list.
Properties
_processEvent
String | Array
Holds the event(s) after which the processing should be triggered.