/** * @param \Pagekit\View\Asset\AssetManager $scripts */ public function registerScripts($scripts) { $script = $this->type['resource'] . '/fieldtype-' . $this->id . '.js'; $scripts->register('fieldtype-' . $this->id, $script, array_merge(['~bixie-fieldtypes'], $this->type['dependancies'])); }