public function onPreRender(&$view) { $view->on = $this->onText; $view->off = $this->offText; parent::onPreRender($view); }