See More

name(), $this->resourcesFolder() . 'views/'); // Replace an existing view with our own version. View::registerCustomView('::chart-box', $this->name() . '::chart-box'); } /** * Where does this module store its resources * * @return string */ public function resourcesFolder(): string { return __DIR__ . '/resources/'; } /** * Add our own stylesheet to the existing stylesheets. * * @return array */ public function stylesheets(): array { $stylesheets = parent::stylesheets(); // NOTE - a future version of webtrees will allow the modules to be stored in a private folder. // Only files in the /public/ folder will be accessible via the webserver. // Since modules cannot copy their files to the /public/ folder, they need to provide them via a callback. $stylesheets[] = $this->assetUrl('css/theme.css'); return $stylesheets; } };