You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php namespace Wpstudio\AssetsManifest;
use Backend; use System\Classes\PluginBase;
/** * assetsmanifest Plugin Information File */ class Plugin extends PluginBase { /** * Returns information about this plugin. * * @return array */ public function pluginDetails() { return [ 'name' => 'assetsmanifest', 'description' => 'No description provided yet...', 'author' => 'wpstudio', 'icon' => 'icon-leaf' ]; }
/** * Register method, called when the plugin is first registered. * * @return void */ public function register() {
}
/** * Boot method, called right before the request route. * * @return array */ public function boot() {
}
/** * Registers any front-end components implemented in this plugin. * * @return array */ public function registerComponents() { return []; // Remove this line to activate
return [ 'Wpstudio\Assetsmanifest\Components\MyComponent' => 'myComponent', ]; }
/** * Registers any back-end permissions used by this plugin. * * @return array */ public function registerPermissions() { return []; // Remove this line to activate
return [ 'wpstudio.assetsmanifest.some_permission' => [ 'tab' => 'assetsmanifest', 'label' => 'Some permission' ], ]; }
/** * Registers back-end navigation items for this plugin. * * @return array */ public function registerNavigation() { return []; // Remove this line to activate
return [ 'assetsmanifest' => [ 'label' => 'assetsmanifest', 'url' => Backend::url('wpstudio/assetsmanifest/mycontroller'), 'icon' => 'icon-leaf', 'permissions' => ['wpstudio.assetsmanifest.*'], 'order' => 500, ], ]; } }
|