Add result
This commit is contained in:
parent
9bf525590b
commit
79cbc8b98b
|
@ -67,7 +67,7 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
|
|||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 4.2.0
|
||||
* @since __DEPLOY_VERSION__
|
||||
*/
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
|
@ -111,12 +111,15 @@ final class Weblinks extends CMSPlugin implements SubscriberInterface
|
|||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
$result = $event->getArgument('result', []);
|
||||
$result[] = [
|
||||
[
|
||||
'title' => Text::_('PLG_SYSTEM_WEBLINKS_STATISTICS'),
|
||||
'icon' => 'out-2',
|
||||
'data' => $webLinks,
|
||||
],
|
||||
];
|
||||
|
||||
$event->setArgument('result', $result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue