SiteEmailBrand
Corex\Email\Design\SiteEmailBrand · class · Add-ons layer
This site’s email brand, read when an email is drawn: its name, its address, its mark, its direction and its language, in CoreX’s colours unless the site gives its own (spec 106, FR-015). A site gives its own in two ways, and neither is a framework file: - CoreX → Settings → Mail: the accent colour, a logo and the footer line. No code. - The filter corex_email_brand, from the site’s plugin, for the colours a setting does not reach. It is handed the brand as the settings left it and returns one.
Public API
Section titled “Public API”__construct(ConfigInterface $config, EventDispatcher $events)
Section titled “__construct(ConfigInterface $config, EventDispatcher $events)”brand(): EmailBrand
Section titled “brand(): EmailBrand”logo(): string
Section titled “logo(): string”An absolute address of the site’s mark, or ”. The theme’s custom logo first: it is the mark the site’s owner chose. The site icon second: a site that set one has still said which mark is its own. Both are absolute, which matters here more than anywhere: a mail client has no page to resolve a path from.