/** * {@inheritdoc} */ protected function getAssets() { $assets = parent::getAssets(); $assets->addJs(function () { return $this->formatter->getJs(); }); return $assets; }
/** * {@inheritdoc} */ public function getView() { $view = parent::getView(); $view->getJs()->addString(function () { return $this->formatter->getJs(); }); return $view; }