From 0371acff89b14b9bdcb03e72fd9637e26e6b517c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 29 Jan 2017 11:07:42 -0500 Subject: Move English documentation to folder en_US --- doc/plugin-avatar-provider.markdown | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 doc/plugin-avatar-provider.markdown (limited to 'doc/plugin-avatar-provider.markdown') diff --git a/doc/plugin-avatar-provider.markdown b/doc/plugin-avatar-provider.markdown deleted file mode 100644 index 62941e5c..00000000 --- a/doc/plugin-avatar-provider.markdown +++ /dev/null @@ -1,32 +0,0 @@ -Adding a new Avatar Provider -============================= - -Registration ------------- - -```php -$this->avatarManager->register(new CustomAvatarProvider()); -``` - -Interface ---------- - -The provider must implements the interface `Kanboard\Core\User\Avatar\AvatarProviderInterface`: - - -| Method | Description | -|-------------------------------|---------------------------------------------------------------| -| `render(array $user, $size)` | Render HTML | -| `isActive(array $user)` | Returns a boolean if the provider is able to render something | - - -The `$user` argument is a dictionary that contains these keys: - -```php -[ - 'id' => 123, - 'username' => 'admin', - 'name' => 'Administrator', - 'email' => 'me@localhost', -] -``` -- cgit v1.2.3