30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-21 23:42:23 +00:00

Add result

This commit is contained in:
Tuan Pham Ngoc 2023-03-16 16:35:52 +07:00
parent 9bf525590b
commit 79cbc8b98b

View File

@ -67,7 +67,7 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
* *
* @return array * @return array
* *
* @since 4.2.0 * @since __DEPLOY_VERSION__
*/ */
public static function getSubscribedEvents(): array public static function getSubscribedEvents(): array
{ {
@ -111,12 +111,15 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
return []; return [];
} }
return [ $result = $event->getArgument('result', []);
$result[] = [
[ [
'title' => Text::_('PLG_SYSTEM_WEBLINKS_STATISTICS'), 'title' => Text::_('PLG_SYSTEM_WEBLINKS_STATISTICS'),
'icon' => 'out-2', 'icon' => 'out-2',
'data' => $webLinks, 'data' => $webLinks,
], ],
]; ];
$event->setArgument('result', $result);
} }
} }