mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 14:55:48 +00:00
Move TestSuggestions to Example plugin
This commit is contained in:
14
plugins/example/ContactSuggestions.php
Normal file
14
plugins/example/ContactSuggestions.php
Normal 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')
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user