forked from GNUsocial/gnu-social
[COMPONENT][PLUGIN] Small refactor and add license
This commit is contained in:
@@ -32,12 +32,14 @@
|
||||
|
||||
namespace Component\Email;
|
||||
|
||||
use App\Core\Event;
|
||||
use App\Core\Module;
|
||||
|
||||
class Email extends Module
|
||||
{
|
||||
public function onAddNotificationTransport($form_defs)
|
||||
public function onAddNotificationTransport(&$form_defs): bool
|
||||
{
|
||||
$form_defs['email'] = $form_defs['placeholder'];
|
||||
return Event::next;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user