summaryrefslogtreecommitdiff
path: root/doc/en_US/plugin-avatar-provider.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en_US/plugin-avatar-provider.markdown')
-rw-r--r--doc/en_US/plugin-avatar-provider.markdown32
1 files changed, 0 insertions, 32 deletions
diff --git a/doc/en_US/plugin-avatar-provider.markdown b/doc/en_US/plugin-avatar-provider.markdown
deleted file mode 100644
index 62941e5c..00000000
--- a/doc/en_US/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',
-]
-```