Core classHooks\Classes

LoopElementRunData

Class to allow data to be exchanged between different actions of a loop element, but without affecting the outer batch

Hooks\Classes\LoopElementRunData

Methods 4

Take arguments. The API serialises only getters that need none.

# get(string $key)
?mixed
Get a variable from the data
# getAtPath(string $key, string $path)
?mixed
Treat data element as (multidimensional) associative array get the value from the property path provided using dot notation
# set(string $key, ?mixed $value)
?mixed
Set a variable in the data
# setAtPath(string $key, string $path, ?mixed $value)
?mixed
Treat data element as (multidimensional) associative array assign the value to the property path provided using dot notation