mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Move TestSuggestions to Example plugin
This commit is contained in:
parent
0672a73c0b
commit
02e3ce779c
3 changed files with 45 additions and 18 deletions
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')
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue