Source: src/Helpers/FaviconHelper.php
Overview
FaviconHelper — derive /favicon.ico and /apple-touch-icon.png from the branding site_icon. Browsers, iOS add-to-home, RSS readers, and crawlers request these fixed root paths directly, ignoring any <link rel="icon"> in the page head. Keeping them in sync with site_icon means admins set the icon once in /admin/branding and the root files follow automatically.
Public methods
regenerate(string $siteIconFilename): bool
Rebuild both icon files from the configured site_icon. Returns true on success, false if the source is missing or Imagick isn't loaded. Safe to call repeatedly.
Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 09:56 CDT. Re-runs overwrite this thread body.
. __ ____ ___ ____ _ _
/ /_| ___| / _ \___ \(_)___| |__
| '_ \___ \| | | |__) | / __| '_ \
| (_) |__) | |_| / __/| \__ \ | | |
\___/____/ \___/_____|_|___/_| |_|
D2sk - Sysop