final class SenderConfiguration (View source)

This class holds the configurable addresses for outgoing emails.

Packages can add their own addresses in the package controller on_start method with some code like this:

```$app->extend(
    SenderConfiguration::class,
    static function(SenderConfiguration $configuration): SenderConfiguration {
        return $configuration->addEntry(
            (new SenderConfiguration\Entry(t('Name of the option'), 'email.configuration.key'))
                ->setPackageHandle('your_package_handle')
        );
    }
);
```
.

Properties

private Entry[] $entries
private string $allConfigurationKeys

Methods

addEntries(iterable $entries)

No description

addEntry(Entry $entry)

No description

array
getEntries()

No description

void
sortEntries()

No description

Details

SenderConfiguration addEntries(iterable $entries)

No description

Parameters

iterable $entries

Return Value

SenderConfiguration

SenderConfiguration addEntry(Entry $entry)

No description

Parameters

Entry $entry

Return Value

SenderConfiguration

Exceptions

RuntimeException

array getEntries()

No description

Return Value

array

private void sortEntries()

No description

Return Value

void