Skip to content
PHP Ecosystem
Explore

YiiLogo

API reference › Debug › service › YiiLogo

final classyii\debug\service\YiiLogo
Sourcesrc/service/YiiLogo.php

Serves the Yii mark as a data URI, reading the shared frontend asset once and caching the result.

MethodDescriptionDefined by
dataUri() staticReturns the Yii logo as a data URI ready to drop into <img src="…"> or <link rel="icon">.YiiLogo
reset() staticDrops the cached URI, so the next read composes it from the packaged asset again.YiiLogo
set() staticSets the logo data URI returned by dataUri().YiiLogo
public static function dataUri(): string

Returns 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.

Returns

string: Logo as a data URI.

Throws

public static function reset(): void

Drops the cached URI, so the next read composes it from the packaged asset again.

public static function set(string $logo): void

Sets the logo data URI returned by dataUri().

Parameters

ParameterTypeDescription
$logostringLogo as a data URI.