mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-09-23 02:29:07 +00:00
Add result
This commit is contained in:
parent
9bf525590b
commit
79cbc8b98b
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user