Skip to content

Commit

Permalink
Remove unnecessary methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jDanek committed Sep 14, 2023
1 parent dbecfe2 commit dac87e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,6 @@ public function onHead(array $args): void
}
}

protected function getCustomActionList(): array
{
return ['manage' => _lang('admin.plugins.action.do.config')];
}

function getAction(string $name): ?PluginAction
{
if ($name === 'manage') {
return new ManageResourcesAction($this);
}

return parent::getAction($name);
}

protected function getResourceMapPath(): string
{
return __DIR__ . DIRECTORY_SEPARATOR . '../resources_map.php';
Expand Down
10 changes: 4 additions & 6 deletions plugins/extend/custom-head-resources/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
"authors": [
{"name": "Friends of Sunlight CMS", "url": "https://github.com/friends-of-sunlight-cms/"}
],
"version": "0.9.2",
"version": "1.0.0",
"environment": {
"system": "^8.0"
},
"class": "CustomHeadResourcesPlugin",
"actions": {
"manage": "Action/ManageResourcesAction"
"manage": "SunlightExtend\\CustomHeadResources\\Action\\ManageResourcesAction"
},
"langs": {
"headresources": "lang"
},
"events": [],
"events.web": [
{"event": "tpl.head", "method": "onHead"}
],
"events.admin": []
{"event": "tpl.head", "script": "event/head_assets.php"}
]
}

0 comments on commit dac87e8

Please sign in to comment.