Skip to content
PHP Ecosystem
Explore

Bootstrap

API reference › Bootstrap 6 › Bootstrap

final classyii2\extensions\bootstrap6\Bootstrap
Implementsyii\base\BootstrapInterface
Sourcesrc/Bootstrap.php

Registers the yii.bootstrap6 message source when the application does not configure it.

Composer runs this class automatically through the extra.bootstrap entry of the package, so the widget labels are translated without additional configuration.

MethodDescriptionDefined by
bootstrap()Bootstrap
ConstantValueDescriptionDefined by
TRANSLATION_CATEGORY'yii.bootstrap6'Message category of the widget labels.Bootstrap
public function bootstrap(yii\base\Application $app): void

Parameters

ParameterTypeDescription
$appyii\base\ApplicationApplication being bootstrapped.