| Conditions | 2 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function registerAssets() |
||
| 54 | {
|
||
| 55 | PassfieldAsset::register($this->view); |
||
| 56 | $config = empty($this->config) ? json_encode(['locale' => \Yii::$app->language]) : json_encode($this->config); |
||
| 57 | $this->view->registerJs(sprintf('$("#%s").passField(%s)', $this->options['id'], $config));
|
||
| 58 | } |
||
| 60 |