Skip to content
PHP Ecosystem
Explore

Example

final classyii\template\Example
Sourcesrc/Example.php

Provides a placeholder API that a new extension replaces with its own classes.

MethodDescriptionDefined by
getExample()Returns the requested mode.Example
public function getExample(bool $legacy = false): bool

Returns the requested mode.

Parameters

ParameterTypeDescription
$legacyboolWhether legacy mode is requested.

Returns

bool: true for legacy mode, false otherwise.