Class rootlocal\widgets\sortable\Bootstrap

Inheritancerootlocal\widgets\sortable\Bootstrap
Implementsyii\base\BootstrapInterface

Class Bootstrap

Public Methods

Hide inherited methods

Method Description Defined By
bootstrap() rootlocal\widgets\sortable\Bootstrap

Method Details

Hide inherited methods

bootstrap() public method

public void bootstrap ( $app )
$app

                public function bootstrap($app)
{
    // add module I18N category
    if (!isset($app->i18n->translations['rootlocal-sort'])) {
        $app->i18n->translations['rootlocal-sort'] = [
            'class' => PhpMessageSource::class,
            'sourceLanguage' => 'en-US',
            'basePath' => __DIR__ . '/messages',
        ];
    }
}