Move TestSuggestions to Example plugin

This commit is contained in:
the-djmaze
2022-05-13 20:25:52 +02:00
parent 0672a73c0b
commit 02e3ce779c
3 changed files with 45 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace Plugins\Example;
class ContactSuggestions implements \RainLoop\Providers\Suggestions\ISuggestions
{
public function Process(\RainLoop\Model\Account $oAccount, string $sQuery, int $iLimit = 20) : array
{
return array(
array($oAccount->Email(), ''),
array('email@domain.com', 'name')
);
}
}