YiiLogo
API reference › Debug › service › YiiLogo
Serves the Yii mark as a data URI, reading the shared frontend asset once and caching the result.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
dataUri() static | Returns the Yii logo as a data URI ready to drop into <img src="…"> or <link rel="icon">. | YiiLogo |
reset() static | Drops the cached URI, so the next read composes it from the packaged asset again. | YiiLogo |
set() static | Sets the logo data URI returned by dataUri(). | YiiLogo |
Method details
Section titled “Method details”dataUri()
Section titled “dataUri() ”public static function dataUri(): stringReturns the Yii logo as a data URI ready to drop into <img src="…"> or <link rel="icon">.
Reads the shared frontend file so every framework adapter renders the same Yii mark.
reset()
Section titled “reset() ”public static function reset(): voidDrops the cached URI, so the next read composes it from the packaged asset again.
set()
Section titled “set() ”public static function set(string $logo): voidSets the logo data URI returned by dataUri().
Parameters
| Parameter | Type | Description |
|---|---|---|
$logo | string | Logo as a data URI. |