Webiny\Component\Mailer\Mailer::setDecorators PHP Method

setDecorators() public method

Decorators are arrays that contain keys and values. The message body and subject will be scanned for the keys, and, where found, the key will be replaced with the value.
public setDecorators ( array $replacements )
$replacements array Array [email=> [key1=>value1, key2=>value2], email2=>[...]].
    public function setDecorators(array $replacements)
    {
        $this->transport->setDecorators($replacements);
        return $this;
    }