ValueFromReferenceArrayProcessor
class \
- Implements
- PlaceholderProcessorInterface
Returns the value for a placeholder as fetched from the referenceArray
Table of Contents
Interfaces
Methods
- canProcess() : bool
- process() : array|mixed|string
- Returns the value for a placeholder as fetched from the referenceArray
Methods
canProcess()
public
canProcess(string $placeholder, array $referenceArray) : bool
Parameters
- $placeholder : string
- $referenceArray : array
Return values
boolprocess()
Returns the value for a placeholder as fetched from the referenceArray
public
process(string $value, array $referenceArray) : array|mixed|string
Parameters
- $value : string
-
the string to search for
- $referenceArray : array
-
the main configuration array where to look up the data