Documentation

ToHeader extends AutoService
in package
uses IsActiveTrait

AutoService is a base-class for defining a service (in Civi's service-container).

Tags
service

civi_flexmailer_to_header

Table of Contents

Properties

$active  : bool

Methods

isActive()  : bool
onCompose()  : mixed
Inject the "To:" header.
setActive()  : $this
getContactNames()  : array<string|int, mixed>
Lookup contact names as a batch.

Properties

Methods

setActive()

public setActive(bool $active) : $this
Parameters
$active : bool
Return values
$this

getContactNames()

Lookup contact names as a batch.

protected getContactNames(array<string|int, FlexMailerTask$tasks) : array<string|int, mixed>
Parameters
$tasks : array<string|int, FlexMailerTask>
Return values
array<string|int, mixed>

Array(int $contactId => string $displayName).


        
On this page

Search results