ToHeader
extends AutoService
in package
uses
IsActiveTrait
AutoService is a base-class for defining a service (in Civi's service-container).
Tags
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
$active
private
bool
$active
= TRUE
Methods
isActive()
public
isActive() : bool
Return values
boolonCompose()
Inject the "To:" header.
public
onCompose(ComposeBatchEvent $e) : mixed
Parameters
- $e : ComposeBatchEvent
setActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thisgetContactNames()
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).